From 6f11dd0402cfb39919ef10e260185341e16efec4 Mon Sep 17 00:00:00 2001 From: Ing Date: Sat, 9 Dec 2023 23:42:25 +0800 Subject: [PATCH] add root= for rr --- files/p1/boot/grub/grub.cfg | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/files/p1/boot/grub/grub.cfg b/files/p1/boot/grub/grub.cfg index 8be97c6f..5bdbe305 100644 --- a/files/p1/boot/grub/grub.cfg +++ b/files/p1/boot/grub/grub.cfg @@ -65,8 +65,7 @@ function set_gfxpayload { fi } -set TERM=tty2 -set RR_CMDLINE="" +set RR_CMDLINE="console=tty2 root=/dev/ram net.ifnames=0" search --set=root --label "RR3" if [ -s /zImage-dsm -a -s /initrd-dsm ]; then @@ -87,7 +86,7 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then menuentry 'Boot DSM' --id boot { set_gfxpayload echo "Loading kernel..." - linux /bzImage-rr console=${TERM} net.ifnames=0 ${RR_CMDLINE} + linux /bzImage-rr ${RR_CMDLINE} echo "Loading initramfs..." initrd /initrd-rr echo "Booting..." @@ -95,7 +94,7 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then menuentry 'Force re-install DSM' --id junior { set_gfxpayload echo "Loading kernel..." - linux /bzImage-rr console=${TERM} net.ifnames=0 ${RR_CMDLINE} force_junior + linux /bzImage-rr ${RR_CMDLINE} force_junior echo "Loading initramfs..." initrd /initrd-rr echo "Booting..." @@ -105,7 +104,7 @@ fi menuentry 'Configure loader' --id config { set_gfxpayload echo "Loading kernel..." - linux /bzImage-rr console=${TERM} net.ifnames=0 ${RR_CMDLINE} IWANTTOCHANGETHECONFIG + linux /bzImage-rr ${RR_CMDLINE} IWANTTOCHANGETHECONFIG echo "Loading initramfs..." initrd /initrd-rr echo "Booting..."