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 | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/pykickstart/commands/btrfs.py b/pykickstart/commands/btrfs.py
index 2c263ac..1a2be3a 100644
--- a/pykickstart/commands/btrfs.py
+++ b/pykickstart/commands/btrfs.py
@@ -67,6 +67,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 +131,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="")
--
1.8.3.1