[PATCH 1/2] fix support existing btrfs subvolumes

Gene Czarcinski gene at czarc.net
Fri Oct 18 19:44:50 UTC 2013


This patch corrects anaconda 20.25.1 to update device.format.__
rather than device.___ and adds the information of both subvol
name and parent btrfs volume UUID 'what to mount'
---
 pyanaconda/kickstart.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index b146ecc..4624fce 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -386,7 +386,9 @@ class BTRFSData(commands.btrfs.F17_BTRFSData):
             if not device:
                 raise KickstartValueError(formatErrorMsg(self.lineno, msg="Specified nonexistent BTRFS volume %s in btrfs command" % self.name))
 
-            device.mountpoint = self.mountpoint
+            device.format.mountpoint = self.mountpoint
+            device.format.mountopts = "subvol=%s" % (self.name)
+            device.format.uuid = dev.uuid # use the UUID from the parent (the BTRFS Volume)
         else:
             request = storage.newBTRFS(name=name,
                                        subvol=self.subvol,
-- 
1.8.3.1



More information about the anaconda-patches mailing list