Public bug reported:

The dropbear package includes an initramfs script, /usr/share/initramfs-
tools/scripts/init-premount/devpts, that mounts devpts a second time,
after it's already been mounted by /usr/share/initramfs-tools/init,
provided by initramfs-tools.

Line 23 in /usr/share/initramfs-tools/scripts/init-premount/devpts from 
dropbear:
mount -t devpts none /dev/pts

Line 25 in /usr/share/initramfs-tools/init from initramfs-tools:
mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true


The second mount from dropbear fails since /dev/pts is already mounted, but it 
does change the mount options:

mwharris@mwharris-test:~$ grep pts /proc/mounts 
devpts /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0

I'm not sure why dropbear tried to mount devpts a second time, but it
seems like the best fix would just be to remove /usr/share/initramfs-
tools/scripts/init-premount/devpts from dropbear

I'm on Precise using dropbear_2011.54-1 and initramfs-tools_0.99ubuntu10

** Affects: dropbear (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/933903

Title:
  Dropbear's init scripts mount /dev/pts a second time

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dropbear/+bug/933903/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to