Skip to content

Commit

Permalink
Merge pull request #5194 from jlinton/fix_btrfs
Browse files Browse the repository at this point in the history
storage: Handle BTRFS with systemd-boot
  • Loading branch information
VladimirSlavik authored Oct 13, 2023
2 parents f881d0e + 17d59e3 commit f659609
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 f659609

Please sign in to comment.