[PATCH 2/2] if rootfs is btrfs, add rootflags=subvol to kernel parameters
Gene Czarcinski
gene at czarc.net
Thu Dec 5 18:45:45 UTC 2013
This addresses BZ 1033764
If the rootfs was a btrfs (subvolume), then rootflags=subvol=<xx>
needs to be added to the kernel cmdline parameters.
---
pyanaconda/bootloader.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pyanaconda/bootloader.py b/pyanaconda/bootloader.py
index e52dc41..3868dc8 100644
--- a/pyanaconda/bootloader.py
+++ b/pyanaconda/bootloader.py
@@ -2131,6 +2131,8 @@ class EXTLINUX(BootLoader):
for image in self.images:
args = Arguments()
args.update(["root=%s" % image.device.fstabSpec, "ro"])
+ if image.device.type == "btrfs subvolume":
+ args.update(["rootflags=subvol=%s" % image.device.name])
args.update(self.boot_args)
log.info("bootloader.py: used boot args: %s ", args)
stanza = ("label %(label)s (%(version)s)\n"
--
1.8.4.2
More information about the anaconda-patches
mailing list