From c675ba5174c5cdc5adcd9a3875375dd5ff8ee6e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20R=C5=AF=C5=BEi=C4=8Dka?= Date: Tue, 4 Nov 2025 16:33:32 +0100 Subject: [PATCH] Add vmlinuz parameters --- lib/utils.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/utils.pm b/lib/utils.pm index efaabe10..34f6d67a 100644 --- a/lib/utils.pm +++ b/lib/utils.pm @@ -1930,6 +1930,13 @@ sub manual_boot { $linux = "linuxefi"; $initrd = "initrdefi"; } + # Create a list of parameters for the vmlinuz command. + # For Workstation, KDE, and Everything, we have btrfs. + my $parameters = "root=/dev/vda3 ro rootflags=subvol=root"; + # For Server, we have LVM + if (get_var("") eq "Server") { + $parameters = "root=/dev/mapper/fedora-root ro rd.lvm.lv=fedora/root"; + } # There is no solid way how we could identify the kernel version # from the Grub screen, but with new installations we know # that there will only be one kernel present, which we can tabcomplete @@ -1947,7 +1954,7 @@ sub manual_boot { type_string("set root=(hd1,gpt2)\n"); sleep(1); # Load linux - type_string("$linux /vmlinuz-$kernel\t root=/dev/vda3 ro rootflags=subvol=root\n"); + type_string("$linux /vmlinuz-$kernel\t $parameters\n"); sleep(1); # Load initrd type_string("$initrd /initramfs-$kernel\t");