[Bug 1608290] Re: rescue mode should mount /dev/pts

Colin Watson cjwatson at canonical.com
Thu Aug 11 11:07:11 UTC 2016


It would be tempting to replace the existing "mount -o bind /dev
/target/dev" in /var/lib/dpkg/info/rescue-mode.postinst with "mount -o
rbind /dev /target/dev" instead, assuming that actually works.  It
should be possible to test that out by switching to tty2 a little before
the rescue-mode component actually starts and editing that file in place
with nano.

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

Title:
  rescue mode should mount /dev/pts

Status in rescue package in Ubuntu:
  New

Bug description:
  I recently installed Ubuntu 16.04.1 Server (amd64) and unrelated to
  this issue the installer made some bad assumptions leaving me with a
  non-bootable system. I booted the installation media again and
  selected "Rescue Mode" and had it drop me to a root shell in my
  installation. I proceeded to install a few missing packages and kept
  getting an error about posix_openpt() failing due to /dev/pts not
  being mounted. I did a simple "mount -t devpts devpts /dev/pts" and
  all was well. It appears that /dev/pts is mounted in the live CD
  environment but not in the chroot root environment where the root
  shell is inside the actual installation.

  I'm guessing when the chroot is being setup there's a missing call for
  "mount --make-rslave /target/SYSTEM/dev"

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



More information about the foundations-bugs mailing list