Skip to content

Commit

Permalink
storage: Handle BTRFS with systemd-boot
Browse files Browse the repository at this point in the history
While XFS and LVM installs work with systemd-boot we need to
special case BTRFS because the filesystem plugin isn't appending
the required args to the boot_args. This matches similar code in
the extlinux and zipl bootloaders, but not grub2 because it handles
this case in grub-tools.

Resolves: rhbz#2237327
Signed-off-by: Jeremy Linton <[email protected]>
  • Loading branch information
jlintonarm committed Sep 20, 2023
1 parent 5c686eb commit e2d90c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyanaconda/modules/storage/bootloader/systemd.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ def write_config(self):
root_uuid = util.execWithCapture("findmnt", [ "-sfn", "-oUUID", "/" ],
root=conf.target.system_root)
args += " root=UUID=" + root_uuid

for image in self.images:
if image.device.type == "btrfs subvolume":
args += "rootflags=subvol=" + image.device.name

config.write(args)

# rather than creating a mess in python lets just
Expand Down

0 comments on commit e2d90c4

Please sign in to comment.