[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How do you delete a sbuild an sbuild chroot and start over?



Am 03.08.2016 um 06:20 schrieb Sean Whitton:
> On Tue, Aug 02, 2016 at 11:06:31PM -0500, Paul Elliott wrote:
>> Sometimes a user gets a sbuild chroot so screwed up that it does not
>> work anymore, and the user has no idea how to fix it, because he does not
>> know what he did wrong.
>>
>> He wants to start over from scratch.
>>
>> The problem is, it is not documented the correct way to delete
>> the chroot and tar ball. The users want to put sbuild back to
>> the way it was just after sbuild was installed.
>>
>>
>> What is the proper way to do that?
> 
> Asking for a friend? ;)
> 
> Assuming you used the suggestions for making the chroot on the sbuild
> wiki page, this should do it:
> 
> # rm -rf /srv/chroot/* /etc/sbuild/chroot/*-sbuild /etc/schroot/chroot.d/*-sbuild

Please note that this will delete *all* chroots and their configuration.
I woud prefer something like:

SCHROOT=unstable-amd64-sbuild
SCHROOT_DIR=$(readlink -e /etc/sbuild/${SCHROOT})
rm -r ${SCHROOT_DIR} /etc/sbuild/${SCHROOT} \
	/etc/schroot/chroot.d/$[SCHROOT}-*

Afterwards you can start over by creating a fresh version of the schroot
with sbuild-createchroot as documented on the wiki page[1].

Cheers,
 jonas

[1] https://wiki.debian.org/sbuild

> If you didn't use the suggestions on the wiki page, just start nuking
> stuff in those three directories.
> 


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: