mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2025-12-07 17:36:00 +00:00
Add vmlinuz parameters
This commit is contained in:
parent
06f31f5d97
commit
c675ba5174
@ -1930,6 +1930,13 @@ sub manual_boot {
|
|||||||
$linux = "linuxefi";
|
$linux = "linuxefi";
|
||||||
$initrd = "initrdefi";
|
$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
|
# There is no solid way how we could identify the kernel version
|
||||||
# from the Grub screen, but with new installations we know
|
# from the Grub screen, but with new installations we know
|
||||||
# that there will only be one kernel present, which we can tabcomplete
|
# 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");
|
type_string("set root=(hd1,gpt2)\n");
|
||||||
sleep(1);
|
sleep(1);
|
||||||
# Load linux
|
# 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);
|
sleep(1);
|
||||||
# Load initrd
|
# Load initrd
|
||||||
type_string("$initrd /initramfs-$kernel\t");
|
type_string("$initrd /initramfs-$kernel\t");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user