From 0e51bf738418b6d35defa0e90640149590306f79 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 10 Jan 2018 08:25:48 +0000 Subject: [PATCH] custom-chroot: fix /dev/pts mounting on older kernels --- .bin/custom-chroot | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.bin/custom-chroot b/.bin/custom-chroot index 93bca67..109cd45 100755 --- a/.bin/custom-chroot +++ b/.bin/custom-chroot @@ -147,8 +147,10 @@ main() { done # Handle special mounts that we don't want to just bind mount. if ! is_mounted "${chroot}/dev/pts" ; then + # Option order matters: on older kernels that don't recognize newinstance, + # parsing stops as soon as it hits that. mount -t devpts devpts "${chroot}/dev/pts" \ - -o nosuid,noexec,newinstance,ptmxmode=0666,mode=0620,gid=5 + -o nosuid,noexec,mode=0620,gid=5,ptmxmode=0666,newinstance fi init_chroot -- 2.39.5