Kill udevd
authorJeremy Katz <katzj@redhat.com>
Wed, 10 Dec 2008 22:17:09 +0000 (17:17 -0500)
committerJeremy Katz <katzj@redhat.com>
Wed, 10 Dec 2008 22:18:22 +0000 (17:18 -0500)
generate.sh
init

index c96e9cf..1943169 100755 (executable)
@@ -15,7 +15,7 @@ fi
 tmpdir=$(mktemp -d)
 
 # 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
 debugexe="/bin/ls /bin/cat /bin/ln /bin/ps /bin/grep /usr/bin/less"
 
diff --git a/init b/init
index 10098be..f6dcc37 100755 (executable)
--- a/init
+++ b/init
@@ -42,6 +42,9 @@ mkdir $NEWROOT
 # FIXME: obviously we need to parse this from /proc/cmdline
 mount -o ro -t ext3 /dev/sda1 $NEWROOT
 
+# kill off udev
+kill `pidof udevd`
+
 # now we need to prepare to switchroot
 mount --bind /dev $NEWROOT/dev