Use -t devpts for /dev/pts mounts
Currently a bind is used when mounting /dev/pts in chroot. This leads to problems - especially when running DIB in parallel: It was observed that the /dev/pts mount vanishes from the host system. This patch uses '-t devpts' - as it is done for /sys and /proc - for handling /dev/pts. Change-Id: Id7775ae6fca6502af800e7b73a00862ef320206b Signed-off-by: Andreas Florath <andreas@florath.net>
This commit is contained in:
parent
a0045985f2
commit
cebfcf85f9
@ -223,7 +223,7 @@ function _install_pkg_manager {
|
|||||||
sudo mkdir -p $TARGET_ROOT/proc $TARGET_ROOT/dev $TARGET_ROOT/sys
|
sudo mkdir -p $TARGET_ROOT/proc $TARGET_ROOT/dev $TARGET_ROOT/sys
|
||||||
sudo mount -t proc none $TARGET_ROOT/proc
|
sudo mount -t proc none $TARGET_ROOT/proc
|
||||||
sudo mount --bind /dev $TARGET_ROOT/dev
|
sudo mount --bind /dev $TARGET_ROOT/dev
|
||||||
sudo mount --bind /dev/pts $TARGET_ROOT/dev/pts
|
sudo mount -t devpts /dev/pts $TARGET_ROOT/dev/pts
|
||||||
sudo mount -t sysfs none $TARGET_ROOT/sys
|
sudo mount -t sysfs none $TARGET_ROOT/sys
|
||||||
|
|
||||||
# initalize rpmdb
|
# initalize rpmdb
|
||||||
|
@ -87,7 +87,7 @@ sudo zypper ${ZYPPER_TARGET_OPTS} refresh
|
|||||||
sudo mkdir -p $TARGET_ROOT/proc $TARGET_ROOT/dev $TARGET_ROOT/sys
|
sudo mkdir -p $TARGET_ROOT/proc $TARGET_ROOT/dev $TARGET_ROOT/sys
|
||||||
sudo mount -t proc none $TARGET_ROOT/proc
|
sudo mount -t proc none $TARGET_ROOT/proc
|
||||||
sudo mount --bind /dev $TARGET_ROOT/dev
|
sudo mount --bind /dev $TARGET_ROOT/dev
|
||||||
sudo mount --bind /dev/pts $TARGET_ROOT/dev/pts
|
sudo mount -t devpts /dev/pts $TARGET_ROOT/dev/pts
|
||||||
sudo mount -t sysfs none $TARGET_ROOT/sys
|
sudo mount -t sysfs none $TARGET_ROOT/sys
|
||||||
|
|
||||||
# Install filesystem, base and useful tools
|
# Install filesystem, base and useful tools
|
||||||
|
@ -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 --bind /dev/pts $TMP_MOUNT_PATH/dev/pts
|
sudo mount -t devpts /dev/pts $TMP_MOUNT_PATH/dev/pts
|
||||||
sudo mount -t sysfs none $TMP_MOUNT_PATH/sys
|
sudo mount -t sysfs none $TMP_MOUNT_PATH/sys
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user