mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 05:56:58 +02:00
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
This commit is contained in:
parent
cc9a75cffb
commit
74a4e3d3cb
@ -383,6 +383,7 @@ sed -i '{ s^cp -a -f /lib/udev/devices/\* /dev^^ }' \
|
|||||||
UDEV_DEVICES=/lib/udev/devices
|
UDEV_DEVICES=/lib/udev/devices
|
||||||
mkdir "$UDEV_DEVICES"/dri
|
mkdir "$UDEV_DEVICES"/dri
|
||||||
mkdir "$UDEV_DEVICES"/input
|
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"/tty0 c 4 0
|
||||||
mknod --mode=0660 "$UDEV_DEVICES"/tty1 c 4 1
|
mknod --mode=0660 "$UDEV_DEVICES"/tty1 c 4 1
|
||||||
mknod --mode=0660 "$UDEV_DEVICES"/tty2 c 4 2
|
mknod --mode=0660 "$UDEV_DEVICES"/tty2 c 4 2
|
||||||
|
Loading…
Reference in New Issue
Block a user