[PATCH] v3 btrfs subvolume reclaim option for kickstart

Gene Czarcinski gene at czarc.net
Fri Nov 22 19:12:49 UTC 2013


On 11/08/2013 04:30 PM, Gene Czarcinski wrote:
> This involves a patch to pykickstart and a patch to anaconda.
>
> The patch for anaconda was created on anaconda-20.25.6-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.
>
> These patches were used to create an updated pykickstart noarch.rpm and an
> updates images which included the anaconda and pykickstart changes.  The
> updates iamge was then used with an updated ISO created with lorax/pungi
> under mock running on a Fedora 20-Beta system to creat a TC6+ install
> environment.  Testing was successful and everything worked as designed.
>
> 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.
>
>
> Gene Czarcinski (1):
>    v3 add reclaim capability for btrfs subvolumes
>
>   pyanaconda/kickstart.py | 8 ++++++++
>   1 file changed, 8 insertions(+)
>
> Gene Czarcinski (1):
>    v3 add reclaim option to kickstart btrfs command
>
>   pykickstart/commands/btrfs.py | 5 +++++
>   1 file changed, 5 insertions(+)
>
PING

Since the update to "Specify btrfs volumes by UUID in /etc/fstab." has 
been added to the blivet git repository, commit id:
      b3042c63e93fe84fe3a22ff1666fe04216b3d270

I was wondering if the reclaim update could be added also.  Clearly, 
both of these will not be part of Fedora 20 but I would like to get 
reclaim into the repository along with the UUID update so that it not be 
forgotten and will be included in Fedora 21.

BTW, I noticed that you have added a bit more code to the UUID update.  
I backported this patch onto python-blivet-0.23.5-1 and it worked just fine.

Gene


More information about the anaconda-patches mailing list