From 26f0700da85edbf1f1ba1fcc59cf443a74fe2281 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Sat, 11 Feb 2023 21:29:26 +0100 Subject: [PATCH] armbian-next: chroot-helpers: if unable to mount `devpts`, use a mount bind from host Co-authored-by: Paolo Sabatino --- lib/functions/general/chroot-helpers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/general/chroot-helpers.sh b/lib/functions/general/chroot-helpers.sh index 73290afab2..0159d04190 100644 --- a/lib/functions/general/chroot-helpers.sh +++ b/lib/functions/general/chroot-helpers.sh @@ -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