From 0a5d3a944665b78f5cb704a9fa6ab77f1d18dc77 Mon Sep 17 00:00:00 2001 From: Tim Serong Date: Tue, 8 Oct 2013 21:41:18 +1100 Subject: [PATCH] Mount /dev/pts in chroot Mounting /dev/pts fixes mildly irritating errors during image creation, i.e.: "Can not write log, openpty() failed (/dev/pts not mounted?)" emitted by apt-get. Change-Id: I4106bc584f1b29ce9283a20064bb5ae447f17fbe --- lib/common-functions | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/common-functions b/lib/common-functions index 8ac09e68..19df7c4e 100644 --- a/lib/common-functions +++ b/lib/common-functions @@ -273,6 +273,7 @@ function mount_proc_dev_sys () { # supporting kernel file systems sudo mount -t proc none $TMP_MOUNT_PATH/proc sudo mount --bind /dev $TMP_MOUNT_PATH/dev + sudo mount --bind /dev/pts $TMP_MOUNT_PATH/dev/pts sudo mount -t sysfs none $TMP_MOUNT_PATH/sys }