anaconda: use proper subvolume argument when booting from btrfs (EFI)
Kernel command line in legacy mode is constructed by grub scripts and
properly handle btrfs subvolumes. For EFI, it is built directly by
anaconda and 'rootflags=subvol=...' argument need to be added manually.
Fixes QubesOS/qubes-issues#1871
(cherry picked from commit fbc011f01c
)
This commit is contained in:
parent
544e4db337
commit
39699e6a35
@ -1854,12 +1854,15 @@ class XenEFI(EFIGRUB):
|
||||
|
||||
def write_config_images(self, config):
|
||||
for image in self.images:
|
||||
root_args = 'root=' + image.device.fstab_spec
|
||||
if image.device.type == "btrfs subvolume":
|
||||
root_args += " rootflags=subvol=%s" % image.device.name
|
||||
config.write("\n")
|
||||
config.write("[{}]\n".format(image.version))
|
||||
config.write("options=loglvl=all dom0_mem=min:1024M dom0_mem=max:4096M\n")
|
||||
config.write("kernel={} root={} {}\n".format(
|
||||
config.write("kernel={} {} {}\n".format(
|
||||
image.kernel,
|
||||
image.device.fstabSpec,
|
||||
root_args,
|
||||
self.boot_args))
|
||||
config.write("ramdisk={}\n".format(image.initrd))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user