Re: trying to umount a chroot /dev
On Wed, Aug 22, 2012 at 03:41:50AM -0400, Tom H wrote:
> On Tue, Aug 21, 2012 at 10:21 PM, Bob Proulx <bob@proulx.com> wrote:
> > Ross Boylan wrote:
> >>
> >> I setup a chroot on a snapshot. Part of the setup was
> >> mount --rbind /dev /mnt/chrtest/dev
> >
> > Why did you choose "rbind" over "bind". Just curious.
>
> The advantage of using "rbind" is that you don't have to mount
> "/dev/pts" and "/dev/shm" (or just "/dev/pts" on wheezy since
> "/dev/shm" has been moved to "/run/shm") after mounting "/dev".
This approach is really nice, and schroot used to do this. There's
just one niggle:
If you use systemd, it will kill your system because autofs mounts
under /dev created by systemd can't be bind mounted; well, they can,
they are just broken and umountable, and all the processes in your
system will slowly enter D state!
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' schroot and sbuild http://alioth.debian.org/projects/buildd-tools
`- GPG Public Key F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800
Reply to: