rescue mode should mount /dev/pts

Bug #1608290 reported by Doug Goldstein
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
rescue (Ubuntu)
New
Undecided
Unassigned

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"

Revision history for this message
Colin Watson (cjwatson) wrote :

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.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.