Browse Source

Kill udevd

master
Jeremy Katz 16 years ago
parent
commit
65e66984d6
  1. 2
      generate.sh
  2. 3
      init

2
generate.sh

@ -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

@ -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



Loading…
Cancel
Save