Package: debootstrap
Version: 1.0.46
Severity: normal
Tags: patch

Debootstrap unmounts host's /run/shm because it unmounts target's
/dev/shm, which is a symlink to /run/shm, though debootstrap doesn't
mount anything on there.

# cat /proc/mounts > /tmp/1
# debootstrap --variant=minbase sid /tmp/a http://ftp.jp.debian.org/debian
...
# cat /proc/mounts > /tmp/2
# diff -u /tmp/1 /tmp/2
--- /tmp/1      2013-03-12 14:46:17.285000000 +0900
+++ /tmp/2      2013-03-12 14:49:51.685000000 +0900
@@ -5,6 +5,5 @@
 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
 sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
 dev /dev tmpfs rw,mand,nosuid,noexec,relatime,size=1024k,mode=755 0 0
-tmpfs /run/shm tmpfs rw,nosuid,nodev,noexec,relatime,size=101860k 0 0
 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620 0 0
 /tmp /tmp tmpfs rw,relatime 0 0

The attatched patch works for me.
Severity might be critical because this could break applications
which use posix shared memory.

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9.0-rc2 (SMP w/4 CPU cores)
Locale: LANG=ja_JP.eucJP, LC_CTYPE=ja_JP.eucJP (charmap=EUC-JP)
Shell: /bin/sh linked to /bin/dash

Versions of packages debootstrap depends on:
ii  wget  1.14-1

Versions of packages debootstrap recommends:
ii  debian-archive-keyring  2012.4
ii  gnupg                   1.4.12-7

debootstrap suggests no packages.

-- no debconf information
diff --git a/functions b/functions
index c1e938e..ff733ce 100644
--- a/functions
+++ b/functions
@@ -1007,9 +1007,6 @@ setup_proc () {
 	    hurd*)
 		;;
 	    *)
-		umount_on_exit /dev/pts
-		umount_on_exit /dev/shm
-		umount_on_exit /proc/bus/usb
 		umount_on_exit /proc
 		umount "$TARGET/proc" 2>/dev/null || true
 		in_target mount -t proc proc /proc
@@ -1022,7 +1019,6 @@ setup_proc () {
 		on_exit clear_mtab
 		;;
 	esac
-	umount_on_exit /lib/init/rw
 }
 
 setup_proc_fakechroot () {

Reply via email to