This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/5705] Need more descriptive error messages on non-root systemtap invocation


------- Additional Comments From dsmith at redhat dot com  2008-02-04 15:06 -------
(In reply to comment #2)
> Looks good.
> If one can find in e.g. the fedora packaging guidelines
> information to the effect of creating new groups during
> .rpm installation, we can plop such code into a new
> -runtime RPM %post piece.

The fedora packaging guidelines for creating users and groups is located here:

<http://fedoraproject.org/wiki/Packaging/UsersAndGroups?highlight=%28Packaging%29>

The systemtap spec file already follows the latest fedora packaging guidelines
and creates the groups at install time.  This functionality was added on
2007-08-14.  It is done in the %pre section, like this:

  %pre
  getent group stapdev >/dev/null || groupadd -r stapdev
  getent group stapusr >/dev/null || groupadd -r stapusr
  exit 0

However, after thinking about it.  This needs to be done for the
systemtap-runtime rpm, not the main systemtap rpm.  So, the %pre section has
been moved to the systemtap-runtime rpm.

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5705

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]