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

Stefano Rivera launchpad at rivera.za.net
Mon Jun 4 11:48:12 UTC 2012


Re-targetted at quantal and uploaded.

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

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

Status in “dropbear” package in Ubuntu:
  Fix Released
Status in “dropbear” package in Debian:
  New

Bug description:
  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

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



More information about the Ubuntu-sponsors mailing list