[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?



On 2016-08-03 13:12 +0200, Johannes Schauer wrote:
> Hi,
> 
> Quoting Paul Wise (2016-08-03 12:41:28)
> > > As far as I know, schroot still doesn't
> > > document how to delete a chroot.
> > 
> > Seems to me like sbuild should have an sbuild-deletechroot command
> > that should call the relevant tool for the chroot in question and
> > schroot should have a corresponding command that would DTRT.
> 
> it is unlikely, that there will be a schroot command that does the right thing
> because schroot also leaves it up to the user to create the chroot in the first
> place. This is also why sbuild-createchroot is doing everything manually
> including assembling the right schroot configuration file.

schroot does have the info it needs though - to lok up where the chroot is stored and remove it, so it could...
 
> My last attempt at implementing a command that does this was stopped early on
> by the question how this tool should best be called:
> 
>  - sbuild-deletechroot
>  - sbuild-removechroot
>  - sbuild-destroychroot
> 
> Maybe a native English speaker could tell me the most natural choice for a tool
> that does the opposite of what sbuild-createchroot does.

'destroy' is closest to the opposite of 'create'. But 'remove' sounds
a bit less cataclysmic :-) Either will do fine.

Wookey
-- 
Principal hats:  Linaro, Debian, Wookware, ARM
http://wookware.org/

Attachment: signature.asc
Description: Digital signature


Reply to: