mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
stop udev on booting into existing system
This commit is contained in:
parent
05924355c5
commit
ce6c5dee03
1 changed files with 4 additions and 9 deletions
|
@ -123,15 +123,10 @@ else
|
||||||
launch_interactive_shell --exec
|
launch_interactive_shell --exec
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Special handling if udev is running
|
# Stop udevd if is running
|
||||||
udevpid=$(/bin/pidof udevd)
|
if [ "${udevd_running}" -eq 1 ]; then
|
||||||
if [ -n "${udevpid}" ]; then
|
/sbin/udevadm control --exit
|
||||||
# Settle pending uevents, then kill udev
|
/sbin/udevadm info --cleanup-db
|
||||||
/sbin/udevadm settle
|
|
||||||
/bin/kill ${udevpid} > /dev/null 2>&1
|
|
||||||
while /bin/pidof udevd >/dev/null; do
|
|
||||||
sleep 0.1
|
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for d in proc sys dev run; do
|
for d in proc sys dev run; do
|
||||||
|
|
Loading…
Reference in a new issue