The btrfs --reclaim option is intended for use with existing subvolumes where to objective is to reclaim and reuse an existing subvolume name and space. This will provide kickstart with capability currently available with non- kickstart custom allocation installs.
Naturally, full implementation will require code changes made to anaconda. --- pykickstart/commands/btrfs.py | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/pykickstart/commands/btrfs.py b/pykickstart/commands/btrfs.py index 2c263ac..4e8dcc6 100644 --- a/pykickstart/commands/btrfs.py +++ b/pykickstart/commands/btrfs.py @@ -43,6 +43,7 @@ class F17_BTRFSData(BaseData): # subvolume-specific self.subvol = kwargs.get("subvol", False) self.name = kwargs.get("name", None) # required + self.reclaim = kwargs.get("reclaim", False)
def __eq__(self, y): if not y: @@ -67,6 +68,8 @@ class F17_BTRFSData(BaseData): retval += " --metadata=%s" % self.metaDataLevel if self.subvol: retval += " --subvol --name=%s" % self.name + if self.reclaim: + retval += " --reclaim"
return retval
@@ -129,6 +132,8 @@ class F17_BTRFS(KickstartCommand): # op.add_option("--subvol", dest="subvol", action="store_true", default=False) + op.add_option("--reclaim", dest="reclaim", action="store_true", + default=False)
# parent must be a device spec (LABEL, UUID, &c) op.add_option("--parent", dest="parent", default="")