Kill udevd

master
Jeremy Katz 2008-12-10 17:17:09 -05:00
parent a5e56335b5
commit 65e66984d6
2 changed files with 4 additions and 1 deletions

View File

@ -15,7 +15,7 @@ fi
tmpdir=$(mktemp -d) tmpdir=$(mktemp -d)


# executables that we have to have # executables that we have to have
exe="/bin/bash /bin/mount /bin/mknod /bin/mkdir /sbin/modprobe /sbin/udevd /sbin/udevadm /sbin/nash" exe="/bin/bash /bin/mount /bin/mknod /bin/mkdir /sbin/modprobe /sbin/udevd /sbin/udevadm /sbin/nash /bin/kill /sbin/pidof"
# and some things that are nice for debugging # and some things that are nice for debugging
debugexe="/bin/ls /bin/cat /bin/ln /bin/ps /bin/grep /usr/bin/less" debugexe="/bin/ls /bin/cat /bin/ln /bin/ps /bin/grep /usr/bin/less"



3
init
View File

@ -42,6 +42,9 @@ mkdir $NEWROOT
# FIXME: obviously we need to parse this from /proc/cmdline # FIXME: obviously we need to parse this from /proc/cmdline
mount -o ro -t ext3 /dev/sda1 $NEWROOT mount -o ro -t ext3 /dev/sda1 $NEWROOT


# kill off udev
kill `pidof udevd`

# now we need to prepare to switchroot # now we need to prepare to switchroot
mount --bind /dev $NEWROOT/dev mount --bind /dev $NEWROOT/dev