armbian-next: chroot-helpers: if unable to mount devpts, use a mount bind from host

Co-authored-by: Paolo Sabatino <paolo.sabatino@gmail.com>
This commit is contained in:
Ricardo Pardini
2023-02-11 21:29:26 +01:00
parent 9bffa5e749
commit 26f0700da8

View File

@@ -16,7 +16,7 @@ mount_chroot() {
mount -t proc chproc "${target}"/proc
mount -t sysfs chsys "${target}"/sys
mount -t devtmpfs chdev "${target}"/dev || mount --bind /dev "${target}"/dev
mount -t devpts chpts "${target}"/dev/pts
mount -t devpts chpts "${target}"/dev/pts || mount --bind /dev/pts "${target}"/dev/pts
}
# umount_chroot <target>