add root= for rr

This commit is contained in:
Ing 2023-12-09 23:42:25 +08:00
parent 2c6f46f90a
commit cd5a2c779b

View File

@ -65,8 +65,7 @@ function set_gfxpayload {
fi fi
} }
set TERM=tty2 set RR_CMDLINE="console=tty2 root=/dev/ram net.ifnames=0"
set RR_CMDLINE=""
search --set=root --label "RR3" search --set=root --label "RR3"
if [ -s /zImage-dsm -a -s /initrd-dsm ]; then 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 { menuentry 'Boot DSM' --id boot {
set_gfxpayload set_gfxpayload
echo "Loading kernel..." echo "Loading kernel..."
linux /bzImage-rr console=${TERM} net.ifnames=0 ${RR_CMDLINE} linux /bzImage-rr ${RR_CMDLINE}
echo "Loading initramfs..." echo "Loading initramfs..."
initrd /initrd-rr initrd /initrd-rr
echo "Booting..." echo "Booting..."
@ -95,7 +94,7 @@ if [ -s /zImage-dsm -a -s /initrd-dsm ]; then
menuentry 'Force re-install DSM' --id junior { menuentry 'Force re-install DSM' --id junior {
set_gfxpayload set_gfxpayload
echo "Loading kernel..." 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..." echo "Loading initramfs..."
initrd /initrd-rr initrd /initrd-rr
echo "Booting..." echo "Booting..."
@ -105,7 +104,7 @@ fi
menuentry 'Configure loader' --id config { menuentry 'Configure loader' --id config {
set_gfxpayload set_gfxpayload
echo "Loading kernel..." echo "Loading kernel..."
linux /bzImage-rr console=${TERM} net.ifnames=0 ${RR_CMDLINE} IWANTTOCHANGETHECONFIG linux /bzImage-rr ${RR_CMDLINE} IWANTTOCHANGETHECONFIG
echo "Loading initramfs..." echo "Loading initramfs..."
initrd /initrd-rr initrd /initrd-rr
echo "Booting..." echo "Booting..."