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

Junichi Uekawa dancer at netfort.gr.jp
Sat Apr 6 09:45:34 UTC 2013


At Fri, 05 Apr 2013 13:55:16 +0200,
Thorsten Glaser wrote:
> 
> Package: pbuilder
> Version: 0.215

0.215 should have already fixed it, are you sure?
0.214 would do that.

> Severity: critical
> Justification: breaks unrelated software
> 
> I’ve just did the following:
> 
> ① get https://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/deb/pbuilderrc?rev=1.34
>   and install that file as /etc/pbuilderrc
> ② edit the MIRROR_wheezy line to use a local mirror
> ③ remove ~/.pbuilderrc
> ④ run sudo env DIST=wheezy cowbuilder --create
> ⑤ run sudo env DIST=wheezy cowbuilder --update
> 
> I’ve had /run/shm mounted a tmpfs before, as is normal for
> a system running sid, and /dev/shm is a symbolic link pointing
> to it.
> 
> Now, I don’t have that any more:
> 
> tglase at tglase:~ $ mount | fgrep shm; echo $?                                                               
> 1
> tglase at tglase:~ $ ls -la /{dev,run}/shm                                                                    
> lrwxrwxrwx 1 root root  8 Apr  3 09:55 /dev/shm -> /run/shm
> 
> /run/shm:
> total 0
> drwxr-xr-x  2 root root  40 Apr  5 13:49 .
> drwxr-xr-x 26 root root 980 Apr  5 13:45 ..
> 
> This breaks unrelated software on the system, i.e. anything
> that uses /dev/shm/ stuff. Additionally, it will *remove*
> everything currently in there.
> 
> I don’t know if it was the --create or the --upgrade though.
> 
> Running sudo mount -t tmpfs swap /run/shm followed by
> another instance of sudo env DIST=wheezy cowbuilder --update
> however keeps the current contents of /dev/shm/ intact, so
> I believe it was the --create operation. Similarily, running
> sudo env DIST=wheezy cowbuilder --build feistermops_51.dsc
> to compile a local package keeps it there.
> 
> -- System Information:
> Debian Release: 7.0
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> 
> Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
> Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/mksh-static
> 
> Versions of packages pbuilder depends on:
> ii  coreutils              8.13-3.5
> ii  debconf [debconf-2.0]  1.5.49
> ii  debianutils            4.3.4
> ii  debootstrap            1.0.48
> ii  dpkg-dev               1.16.10
> ii  wget                   1.14-1
> 
> Versions of packages pbuilder recommends:
> ii  devscripts  2.12.6
> ii  fakeroot    1.18.4-2
> ii  sudo        1.8.5p2-1+nmu1
> 
> Versions of packages pbuilder suggests:
> ii  cowdancer     0.72
> pn  gdebi-core    <none>
> pn  pbuilder-uml  <none>
> 
> -- Configuration Files:
> /etc/bash_completion.d/pbuilder [Errno 2] No such file or directory: u'/etc/bash_completion.d/pbuilder'
> 
> -- debconf information:
>   pbuilder/mirrorsite: http://mirror.virt.tarent.de/mirror/ubuntu
>   pbuilder/nomirror:
> * pbuilder/rewrite: false
> 
> _______________________________________________
> Pbuilder-maint mailing list
> Pbuilder-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pbuilder-maint



More information about the Pbuilder-maint mailing list