Bug#463866: Missing ptys in lenny /target/
[Frans Pop]
> Please propose a patch.
I suspect something like this should work. Not sure if the test
[ ! -e /target/dev/pts/0 ] is the best way to detect if devpts is
missing, but it is a start.
Index: chroot-setup.sh
===================================================================
--- chroot-setup.sh (revision 51179)
+++ chroot-setup.sh (working copy)
@@ -59,6 +59,13 @@
mount -t sysfs sysfs /target/sys
fi
+ # In Lenny, /dev/ lack the pty devices, so the kernel fs
+ # devpts need to be mounted (see #463866).
+ if [ ! -e /target/dev/pts/0 ] ; then
+ mkdir -p /target/dev/pts
+ mount -t devpts devpts -o noexec,nosuid,gid=5,mode=620 /target/dev/pts
+ fi
+
# Try to enable proxy when using HTTP.
# What about using ftp_proxy for FTP sources?
RET=$(debconf-get mirror/protocol || true)
Reply to: