First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 239748
Alias:
Product:
Component:
Status: NEW
Resolution:
Assigned To: Java team <java@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Xake <xake@rymdraket.net>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 239748 depends on: Show dependency tree
Bug 239748 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.








View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-10-04 22:59 0000
I have bootchart merged with USE="acct".
During boot I get a message from bootchart saying it can't find /sbin/accton.
This is becouse sys-process/acct installs accton to /usr/sbin.

The problem is that if I should change bootchart to use /usr/sbin/accton, it
still will not work since my /usr resides on another partition and is not
avaible during initial boottime.

So is this something that should be fixed package-wise (which it should either
way so bootchart finds accton without modifications), or is this something I
have to make a workaround for becouse my /usr does not resides on the /
partition?

------- Comment #1 From Ryan VanderPlas 2008-10-05 09:48:08 0000 -------
A workaround if you want it:  boot up with a live disk.  Mount / and /usr. 
copy over accton to /.  unmount /usr.  Create a folder named /usr/sbin in the /
partition.  copy accton from / to /usr/sbin/.

Before you mount /usr, the files you created will be there.  After you mount
/usr, those files will 'hide' under the mount.  However, the file can never by
auto updated and this isn't a good long term strategy.  Its just something to
get you going if you have to have it.

------- Comment #2 From Xake 2008-10-05 14:18:58 0000 -------
...or I copy the /usr/sbin files to /sbin, that way I do not have to alter
bootchartd. But still the same problems, which should be fixed.

------- Comment #3 From Jeroen Roovers 2008-10-05 18:55:56 0000 -------
(In reply to comment #1)
> A workaround if you want it:  boot up with a live disk.  Mount / and /usr. 
> copy over accton to /.  unmount /usr.  Create a folder named /usr/sbin in the /
> partition.  copy accton from / to /usr/sbin/.

This isn't a support forum. Please refrain from handing out (bad) advice.

------- Comment #4 From SpanKY 2008-10-05 21:39:18 0000 -------
bootchart shouldnt hardcode paths to binaries

------- Comment #5 From Alistair Bush 2008-10-06 08:20:46 0000 -------
(In reply to comment #4)
> bootchart shouldnt hardcode paths to binaries
> 

So this is clear for everyone.

The issue isn't that bootchart hardcodes paths as seen by

PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH"

the issue is that acct isn't available due to /usr/sbin not having been
mounted.

Now Xake, does bootchart work with <sys-process/acct-6.3.5-r1?

------- Comment #6 From Xake 2008-10-06 20:36:22 0000 -------
I tried to emerge that version when I checked around before filing this bug,
but it complained about a file collision so I did not feel comfortable going
through with it. I think the file was "last", but I can confirm if you like.

------- Comment #7 From Robin Johnson 2008-10-06 23:37:50 0000 -------
6.3.5-r3 moves it back to /sbin, with a symlink at the old spot. Fix bootchart
now.

Other distros:
Fedora, RHEL, Mandriva, Connectiva: /sbin
Debian, Ubuntu: /usr/sbin
Slackware: /usr/sbin in old versions, can't check new ones atm

And really, bootchart needs to stop using acct and go use audit instead.

------- Comment #8 From Jeroen Roovers 2009-01-24 02:07:02 0000 -------
*** Bug 256081 has been marked as a duplicate of this bug. ***

------- Comment #9 From Jeroen Roovers 2009-01-24 02:12:42 0000 -------
(In reply to comment #7)
> 6.3.5-r3 moves it back to /sbin, with a symlink at the old spot. Fix bootchart
> now.

There's nothing to fix, really. The shell script /sbin/bootchartd sets PATH
properly:

PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH"

 and calls `accton' without a path prefixed:
# grep -n accton /sbin/bootchartd
63:             accton kernel_pacct
161:            accton

First Last Prev Next    No search results available      Search page      Enter new bug