Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
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?
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.
...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.
(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.
bootchart shouldnt hardcode paths to binaries
(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?
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.
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.
*** Bug 256081 has been marked as a duplicate of this bug. ***
(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
This seems to work for me now. Is it properly fixed and should be closed, or is there something else left to be done?
Well, I relased acct 6.5.1 last month so a new ebuild would do. ;) //Markus Gothe (In reply to comment #10) > This seems to work for me now. Is it properly fixed and should be closed, or is > there something else left to be done? >