Bug#704744: pbuilder: umounts /{dev,run}/shm of the *host* system

Thorsten Glaser tg at mirbsd.de
Sun Apr 7 23:32:58 UTC 2013


reassign 704744 debootstrap
found 704744 debootstrap/1.0.48
retitle 704744 debootstrap: umounts /{dev,run}/shm of the *host* system
thanks

Dixi quod…

>Okay, I just run “sudo env DIST=sid cowbuilder --create” and
>it happened again. I micro-tested this and can point out where:

Nevermind, it’s debootstrap not pbuilder.

I changed to include “set -x”, run “mount | fgrep shm” using
the DEBUG trap, and commented out the call to debootstrap as
I had it already… and it kept my shm.

Turns out this looks like being the culprit:

tglase at tglase:~ $ fgrep -ri shm /usr/share/debootstrap/*
/usr/share/debootstrap/functions:               umount_on_exit /dev/shm

The problem here is:

lrwxrwxrwx 1 root root 8 Apr  8 01:03 /var/cache/pbuilder/base.cow-sid/dev/shm -> /run/shm/

The symlink is then, of course, followed.

Reassigning this RC bug to debootstrap thusly.
Sorry folks, but this does break unrelated software.

My idea to fix this is:

Move the “umount_on_exit /dev/shm” line away from
/usr/share/debootstrap/functions and into the files under
/usr/share/debootstrap/scripts/ and then change it to use
/run/shm from wheezy onwards (this also involves breaking
up the symlink from etch, etch-m68k, lenny, oldstable,
squeeze and stable to sid, and then, for the wheezy release,
reintroducing the symlink from stable to sid).

Unless you’ve got a better one, that is.

bye,
//mirabilos
-- 
<Natureshadow> Oh, ich hab mim Bauch Mittelklick gemacht, als ich nach dem
    Kaffee gegriffen habe…
<mirabilos> Cool, ich hab ne neue eMail-Signatur
<Natureshadow> Sag doch sowas nich, wenn ich den Kaffee in der Hand habe!
    Gib mir nen Lappen! Schnell! Das kommt aber nicht mit in die Signatur!



More information about the Pbuilder-maint mailing list