Merge "diskimage_builder: lib: common-functions: Fix options for devpts mount"

This commit is contained in:
Zuul 2017-11-09 15:18:44 +00:00 committed by Gerrit Code Review
commit b5b9d98fa0

View File

@ -316,7 +316,7 @@ function mount_proc_dev_sys () {
# supporting kernel file systems # supporting kernel file systems
sudo mount -t proc none $TMP_MOUNT_PATH/proc sudo mount -t proc none $TMP_MOUNT_PATH/proc
sudo mount --bind /dev $TMP_MOUNT_PATH/dev sudo mount --bind /dev $TMP_MOUNT_PATH/dev
sudo mount -t devpts /dev/pts $TMP_MOUNT_PATH/dev/pts sudo mount -t devpts -o $(mount | grep devpts | sed 's/.*(\(.*\))/\1/') devpts $TMP_MOUNT_PATH/dev/pts
sudo mount -t sysfs none $TMP_MOUNT_PATH/sys sudo mount -t sysfs none $TMP_MOUNT_PATH/sys
} }