stop udev on booting into existing system

This commit is contained in:
Tobias Powalowski 2011-05-14 21:30:55 +02:00
parent 05924355c5
commit ce6c5dee03

View file

@ -123,15 +123,10 @@ else
launch_interactive_shell --exec
fi
#Special handling if udev is running
udevpid=$(/bin/pidof udevd)
if [ -n "${udevpid}" ]; then
# Settle pending uevents, then kill udev
/sbin/udevadm settle
/bin/kill ${udevpid} > /dev/null 2>&1
while /bin/pidof udevd >/dev/null; do
sleep 0.1
done
# Stop udevd if is running
if [ "${udevd_running}" -eq 1 ]; then
/sbin/udevadm control --exit
/sbin/udevadm info --cleanup-db
fi
for d in proc sys dev run; do