mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 06:31:18 +02:00
Add more choices to grub2 menu.
This adds some '/dev/sdb' options to the grub2 menu, so that we can keep the default boot partition /dev/sda3 while still using the USB key as a recovery image. This is work in progress for EFI BIOS development. Review URL: http://codereview.chromium.org/1706014
This commit is contained in:
parent
152a1ab50d
commit
041bd71932
12
build_image
12
build_image
@ -382,14 +382,22 @@ cat <<EOF | sudo dd of="${ESP_DIR}/efi/boot/grub.cfg"
|
||||
set timeout=2
|
||||
set default=0
|
||||
|
||||
menuentry "normal" {
|
||||
menuentry "boot from disk" {
|
||||
linux /efi/boot/vmlinuz quiet console=tty2 init=/sbin/init boot=local rootwait root=/dev/sda3 ro noresume noswap i915.modeset=1 loglevel=1
|
||||
}
|
||||
|
||||
menuentry "serial debug" {
|
||||
menuentry "boot from disk with serial debug" {
|
||||
linux /efi/boot/vmlinuz earlyprintk=serial,ttyS0,115200 console=ttyS0,115200 init=/sbin/init boot=local rootwait root=/dev/sda3 ro noresume noswap i915.modeset=1 loglevel=7
|
||||
}
|
||||
|
||||
menuentry "boot from usb" {
|
||||
linux /efi/boot/vmlinuz quiet console=tty2 init=/sbin/init boot=local rootwait root=/dev/sdb3 ro noresume noswap i915.modeset=1 loglevel=1
|
||||
}
|
||||
|
||||
menuentry "boot from usb with serial debug" {
|
||||
linux /efi/boot/vmlinuz earlyprintk=serial,ttyS0,115200 console=ttyS0,115200 init=/sbin/init boot=local rootwait root=/dev/sdb3 ro noresume noswap i915.modeset=1 loglevel=7
|
||||
}
|
||||
|
||||
EOF
|
||||
|
||||
# Run ldconfig for rootfs's ld.so.cache
|
||||
|
Loading…
x
Reference in New Issue
Block a user