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

Re: schroot boot up messages



Seb,

On Wednesday 30 May 2007 14:00, Seb wrote:
> On Wed, 30 May 2007 09:43:54 -0500,
> C M Reinehr <cmr@amsent.com> wrote:
>
> [...]
>
> > 	Glad I could help! It probably was just my carelessness as I was
> > cleaning up the mount directory, but afterwards I couldn't start my
> > chroot. After fooling with it for a couple of _days_ I finally looked in
> > my chroot directory and 90% of it was _gone_! At some point I think I
> > started cleaning up the mount directory while parts of the chroot
> > directory still were mounted.
>
> Yes, that's probably what happened and you butchered the chroot, because I
> noticed that all the directories below /var/lib/schroot/mount are hard
> linked to wherever the chroot is mounted.  I remember reading somewhere
> about someone wiping his/her entire /home (non-chroot!), forgetting it was
> still mounted.  Since then, whenever I do *anything* with any of the
> chroot directories, all my senses concentrate on everything I do then!
>
> :-)
> :
> > 	Anyway, using type=directory seems to work well and I haven't had
> > any more problems. And, /proc, /home, /etc are bind mounted and
> > unmounted automatically as needed, rather than staying mounted all the
> > time, as with chroot.
>
> Did you change anything in your /etc/fstab after you began using
> type=directory?

	No. The beauty of schroot and type=directory is that you don't have to make 
any changes to your fstab at all. All of the bind mounting is specified & 
performed in the /etc/schroot/setup.d/10mount script 
(/proc, /home, /tmp, /dev/pts & /dev/shm). If you want to change this you 
easily can edit 10mount.

	Originally, with chroot, and later with schroot/type=file I had the usual 
bind mounts defined in /etc/fstab. I commented them out after I switched to 
type=directory and, now that you've reminded me, I've deleted them. :-)

cmr

> Thanks a lot for your feedback.
>
>
> Cheers,
>
> --
> Seb

-- 
Debian 'Etch' - Registered Linux User #241964
--------
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC



Reply to: