[Bug 933903] [NEW] Dropbear's initramfs scripts mount /dev/pts a second time

Launchpad Bug Tracker 933903 at bugs.launchpad.net
Thu May 24 20:16:59 UTC 2012


You have been subscribed to a public bug by Ubuntu Foundation's Bug Bot (crichton):

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 at 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
     Assignee: Chris J Arges (christopherarges)
         Status: Confirmed


** Tags: patch
-- 
Dropbear's initramfs scripts mount /dev/pts a second time
https://bugs.launchpad.net/bugs/933903
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list