From 74a4e3d3cb1538e0cb5d5c661ac4380432197fd9 Mon Sep 17 00:00:00 2001 From: "tedbo@google.com" Date: Fri, 6 Nov 2009 01:02:10 +0000 Subject: [PATCH] Fix usb boot issue for the case where usb does not appear as sdb. We had a bug where we were unable to boot a device where the usb drive appeared as sdc. This is because it was using our fixed set of devices needed to start X rather than re-using the devices that are created in the initrd. This fixes that to re-use the devices created by udev if we have an initramfs. This CL also fixes a reboot bug. Review URL: http://chromereview.prom.corp.google.com/1183002 git-svn-id: svn://chrome-svn/chromeos/trunk@174 06c00378-0e64-4dae-be16-12b19f9950a1 --- customize_rootfs.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/customize_rootfs.sh b/customize_rootfs.sh index 672d5ea61d..286720c49c 100755 --- a/customize_rootfs.sh +++ b/customize_rootfs.sh @@ -383,6 +383,7 @@ sed -i '{ s^cp -a -f /lib/udev/devices/\* /dev^^ }' \ UDEV_DEVICES=/lib/udev/devices mkdir "$UDEV_DEVICES"/dri mkdir "$UDEV_DEVICES"/input +mknod --mode=0600 "$UDEV_DEVICES"/initctl p mknod --mode=0660 "$UDEV_DEVICES"/tty0 c 4 0 mknod --mode=0660 "$UDEV_DEVICES"/tty1 c 4 1 mknod --mode=0660 "$UDEV_DEVICES"/tty2 c 4 2