[arch-projects] [devtools] [PATCH] makechrootpkg: Be recursive when deleting btrfs subvolumes.

Bruno Pagani bruno.n.pagani at gmail.com
Thu Feb 16 11:10:08 UTC 2017


Le 16/02/2017 à 08:54, Bartłomiej Piotrowski a écrit :

> On 2017-02-10 10:16, Jan Alexander Steffens via arch-projects wrote:
>> The chroot management is getting so complex I wonder if we're not better
>> off killing the btrfs support (it doesn't buy us much over rsync since
>> the base (root) chroot tends to be small) or using someone's else
>> container framework, maybe rkt.
> I don't think rkt would simplify a lot, it's quite complicated on its own.
>
> Call me a simp, but can't we just maintain a list of subvolumes to
> delete? For now it's just one item.
>
> Bartłomiej

I think this is the most reasonable thing to do right now, and keep it
that way as long as the item list stays sufficiently short, and if it
ever start to grow, reconsider things.

That won’t be more ugly than aliasing extra-x86_64-build to `sudo btrfs
subvolume delete
/var/lib/archbuild/extra-x86_64/archange/var/lib/machines &&
extra-x86_64-build`…

Bruno

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 520 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-projects/attachments/20170216/7fbec0ef/attachment.asc>


More information about the arch-projects mailing list