https://bugzilla.novell.com/show_bug.cgi?id=408959 User martin.koegler@brz.gv.at added comment https://bugzilla.novell.com/show_bug.cgi?id=408959#c6 --- Comment #6 from Martin Kögler <martin.koegler@brz.gv.at> 2008-07-29 05:10:30 MDT --- (In reply to comment #5 from Kay Sievers)
(In reply to comment #0 from Martin Kögler)
To fix it, the device must be checked too, eg: if test -f /proc/1/exe -a -d /proc/1/root; then if test $(stat -Lc '%D-%i' /) -eq $(stat -Lc '%D-%i' /proc/1/root);
The result of stat is not an integer anymore, and this can not work, right?
Yes. I use the following for udev: %pre # kill daemon if we are not in a chroot if test -f /proc/1/exe -a -d /proc/1/root; then if test $(stat -Lc '%%D-%%i' /) = $(stat -Lc '%%D-%%i' /proc/1/root); then if test -x /sbin/udevd; then kill $(pidof udevd) >/dev/null 2>&1 || : fi fi fi -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.