sbuild / schroot unmounted encrypted home directory
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | schroot (Debian) |
Fix Released
|
Unknown
|
||
| | schroot (Ubuntu) |
High
|
Martin Pitt | ||
Bug Description
After the switch to systemd, sbuild has begun unmounting my encrypted home directory during any build process.
Here is some of my syslog from around when it happened:
Mar 10 15:07:17 impulse schroot[6083]: [vivid-
Mar 10 15:07:17 impulse schroot[6123]: [vivid-
Mar 10 15:07:17 impulse schroot[6125]: [vivid-
Mar 10 15:07:17 impulse schroot[6127]: [vivid-
Mar 10 15:07:17 impulse schroot[6154]: [vivid-
Mar 10 15:07:17 impulse schroot[6166]: [vivid-
Mar 10 15:07:18 impulse schroot[6173]: [vivid-
Mar 10 15:07:26 impulse gnome-session[
Mar 10 15:07:26 impulse gnome-session[
Mar 10 15:07:26 impulse gnome-session[
Mar 10 15:07:26 impulse com.ubuntu.
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:38 impulse gnome-session[
Mar 10 15:07:39 impulse schroot[7881]: [vivid-
Mar 10 15:07:40 impulse org.gnome.
Mar 10 15:07:40 impulse org.gnome.
Notice the failure of applications to access /home/bdmurray anymore.
| Brian Murray (brian-murray) wrote : | #1 |
| tags: | added: vivid |
| Changed in sbuild (Ubuntu): | |
| assignee: | nobody → Martin Pitt (pitti) |
| Brian Murray (brian-murray) wrote : | #2 |
This also happened when my cronjob to update my schroots ran e.g.:
for d in $(schroot -l | grep -- '^source:')
do
echo $d
schroot -q -c $d -u root --directory / -- sh -c 'apt-get -qq update && apt-get -y dist-upgrade && apt-get clean'
#schroot -c $d -u root -- sh -c \
done
| affects: | sbuild (Ubuntu) → schroot (Ubuntu) |
| summary: |
- sbuild unmounted encrypted home directory + sbuild / schroot unmounted encrypted home directory |
| Sebastien Bacher (seb128) wrote : | #3 |
seems similar to bug #1427264 / bug #769595
| Brian Murray (brian-murray) wrote : | #4 |
The workaround in bug 1427264 regarding the fstab entry is the same as the one I'm using.
| Brian Murray (brian-murray) wrote : | #5 |
Removing my home directory entries from /etc/sbuild didn't help.
I was able to use schroot to update my vivid chroot and that did NOT unmount my home directory.
However, running sbuild does.
| Brian Murray (brian-murray) wrote : | #6 |
The first issue occurs when checking dependencies:
Check dependencies
──────────────────
Merged Build-Depends: build-essential, fakeroot
Filtered Build-Depends: build-essential, fakeroot
Signature not found in user keyring
Perhaps try the interactive 'ecryptfs-
grep: debian/control: No such file or directory
| Brian Murray (brian-murray) wrote : | #7 |
I was able to work-around this by renaming ~/.ecryptfs/
| Changed in schroot (Ubuntu): | |
| importance: | Undecided → High |
| tags: | added: systemd-boot |
| Martin Pitt (pitti) wrote : | #8 |
I believe this is well enough understood. Tyler was working on this yesterday, and I'm on vacation the next 1.5 weeks, so unassigning me for now. This is still on my radar due to the systemd-boot tag.
| Changed in schroot (Ubuntu): | |
| assignee: | Martin Pitt (pitti) → nobody |
| status: | New → Triaged |
| Robert Bruce Park (robru) wrote : | #9 |
Yeah I'm getting this trying to enter a trusty schroot on my xenial box.
| Changed in schroot (Ubuntu): | |
| assignee: | nobody → Martin Pitt (pitti) |
| Changed in schroot (Debian): | |
| status: | Unknown → Confirmed |
| Changed in schroot (Ubuntu): | |
| status: | Triaged → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #10 |
This bug was fixed in the package schroot - 1.6.10-1ubuntu3
---------------
schroot (1.6.10-1ubuntu3) xenial; urgency=medium
* Add mount-make-
mount propagation, to avoid recursive bind mounts in the schroot spilling
over into the host and unmounting them on the host when tearing down the
schroot. Patch by Tyler Hicks, thank you! (LP: #1430557, Closes: #786566)
-- Martin Pitt <email address hidden> Mon, 01 Feb 2016 16:11:09 +0100
| Changed in schroot (Ubuntu): | |
| status: | Fix Committed → Fix Released |
| Changed in schroot (Debian): | |
| status: | Confirmed → Fix Released |


My /etc/schroot/ sbuild/ fstab file does include /home/bdmurray with the following options:
/home/bdmurray /home/bdmurray none rw,bind 0 0