[PATCH] btrfs subvolume reclaim option for kickstart

Gene Czarcinski gene at czarc.net
Thu Oct 31 12:13:13 UTC 2013


This involves a patch to pykickstart and a patch to anaconda.

The patch for anaconda was created on anaconda-20.25.4-1 and the patch
for pykickstart was created on r-1.99.44-1 and should easily apply or
rebase.

The patches implement a capability currently available if you perform a
non-kickstart custom-allocation install where you can reclaim the name
(and space) of an existing btrfs subvolume and then reuse (recreate) a
new btrfs subvolume of the smae name over it.

The are times in both virtual and real world when a reinstall is needed.
Currently, when this involves a btrfs subvolume as root, you have to manually
delete that subvolume.  The capability implemented in these patches allows
a kickstart user to do that at install time.

Note:  "--reclaim" was chosen for the option since it is both different and,
at the same time, the same as the term used in a non-kickstart install.

NOTE: While I believe that these two patches are good. However, they have
been only partially tested due to problems with pungi/lorax creating ISOs 
with working BTRFS!

Gene Czarcinski (1):
  add btrfs option reclaim

 pykickstart/commands/btrfs.py | 4 ++++
 1 file changed, 4 insertions(+)

Gene Czarcinski (1):
  add reclaim capability for btrfs subvolumes

 pyanaconda/kickstart.py | 8 ++++++++
 1 file changed, 8 insertions(+)

-- 
1.8.3.1



More information about the anaconda-patches mailing list