[Bug 791908] Re: Schroot doesn't mount /home submounts in the chroot
Bug Watch Updater
791908 at bugs.launchpad.net
Wed Jan 8 12:17:05 UTC 2020
** Changed in: schroot (Debian)
Status: Won't Fix => New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to schroot in Ubuntu.
https://bugs.launchpad.net/bugs/791908
Title:
Schroot doesn't mount /home submounts in the chroot
Status in schroot package in Ubuntu:
Won't Fix
Status in schroot package in Debian:
New
Bug description:
Binary package hint: schroot
My home dir is mounted as /home/wookey. Within the company this is
normally a remote dir, but I moved mine to be local to avoid a whole
host of pain :-)
Using schroot it mounts /home with bind, rather than rbind, so inside
the chroot I cannot see my home dir, only the (nearly empty) /home
that has /home/wookey mounted on it. This was extremely confusing for
a while as the old /home has a (normally inaccessible) /home/wookey
containing nothing much from when the machine was originally set up.
Changing /etc/schroot/mount-defaults from
/home /home none rw,bind 0 0
to
/home /home none rw,rbind 0 0
makes it work as expected (my files are visible inside the chroot).
So, in fact it's easy to fix - schroot is very nicely designed; but it
took hours to work out what on earth was wrong in the first place.
Having a sub-dir mounted as a home dir is quite a common configuration
in institutions and larger companies, so this problem will potentially
affect a lot of people (who might not even realise that schroot is
incredibly cool and should automatically makes all their files
available inside the chroot).
So, perhaps rbind should be the default, not bind, for /home? Is there
a good reason not to do this?
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: schroot 1.4.17-1
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic x86_64
Architecture: amd64
Date: Thu Jun 2 16:43:42 2011
ProcEnviron:
SHELL=/bin/bash
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
SourcePackage: schroot
UpgradeStatus: Upgraded to natty on 2011-05-23 (9 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/schroot/+bug/791908/+subscriptions
More information about the foundations-bugs
mailing list