Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#5776 - Udevd not being started properly by rc.sysinit.

Attached to Project: Arch Linux
Opened by Glyn Adgie (glyn) - Tuesday, 07 November 2006, 12:08 GMT
Task Type Bug Report
Category System
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture not specified
Severity Critical
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

This is a clarification of bug #5770.

A number of recently-updated machines failed to boot properly, due to
rc.sysinit/start_udev not starting udevd. The problem is that the scripts
detect that udevd is already running, so do not start it again. On an affected
machine, doing 'ps -C udevd' shows udevd as <defunct>.

The problem only occurs on machines that have the root filesystem on raid0. I
converted one machine to have its root filesystem on a plain partition, and
this worked fine.

I have worked around the problem by modifying the udev_init() function in
start_udev. After the existing check using 'pidof -o %PPID /sbin/udevd', I put
an 'if' statement to check if udevd is defunct. If it is, I start udevd.

# check if udevd is already running
if [ `pidof -o %PPID /sbin/udevd` ]; then
if /bin/ps -C udevd | /bin/grep defunct; then
echo "start udev daemon 1"
/sbin/udevd --daemon
else
echo "udevd already running: `pidof -o %PPID /sbin/udevd`"
grep -v "/dev/shm" /etc/mtab | grep -v "/dev/pts" > /etc/mtab
mount /dev/pts
mount /dev/shm
fi
else
echo "start udev daemon 2"
/sbin/udevd --daemon
fi

---------------
Even with this fix, there is still the problem with kernel26-fallback.img not
working with raid. In this case, booting does not get as far as running any
startup scripts. Again, if the root filesystem is not on raid0, the fallback
image works fine.

This task depends upon

Closed by  Roman Kyrylych (Romashka)
Tuesday, 12 December 2006, 10:02 GMT
Reason for closing:  Not a bug
Comment by Tobias Powalowski (tpowa) - Sunday, 12 November 2006, 09:07 GMT
have you modified initcpio images?
normally udev is first started in initpcio image then killed that the real uev can start again
Comment by Glyn Adgie (glyn) - Monday, 13 November 2006, 08:16 GMT
The only changes to the initcpio images were via /etc/mkinitcpio.conf:

MODULES="piix ide_disk reiserfs"
BINARIES=""
FILES=""
HOOKS="base udev autodetect ide scsi sata filesystems raid"
Comment by Tobias Powalowski (tpowa) - Saturday, 02 December 2006, 16:16 GMT
raid needs to be set before filesystems
Comment by Tobias Powalowski (tpowa) - Sunday, 03 December 2006, 12:38 GMT
please try to place raid before filesystems and report if you still need the extra check, thanks
Comment by Tobias Powalowski (tpowa) - Saturday, 09 December 2006, 15:28 GMT
status on this one?
Comment by Glyn Adgie (glyn) - Tuesday, 12 December 2006, 09:16 GMT
Putting raid before filesystems in HOOKS works with the standard start_udev.

Thanks.

Loading...