From 17d59e3510d51bd42bd7a9e805475fd9e4349546 Mon Sep 17 00:00:00 2001 From: Jeremy Linton Date: Wed, 13 Sep 2023 21:42:30 -0500 Subject: [PATCH] storage: Handle BTRFS with systemd-boot 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 --- pyanaconda/modules/storage/bootloader/systemd.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyanaconda/modules/storage/bootloader/systemd.py b/pyanaconda/modules/storage/bootloader/systemd.py index fe841aa636d..89c06099299 100644 --- a/pyanaconda/modules/storage/bootloader/systemd.py +++ b/pyanaconda/modules/storage/bootloader/systemd.py @@ -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