Permalink
Browse files

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
  • Loading branch information...
1 parent 21a81d8 commit 0a5d3a944665b78f5cb704a9fa6ab77f1d18dc77 @tserong tserong committed Oct 8, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 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
}

0 comments on commit 0a5d3a9

Please sign in to comment.