From: Mike Frysinger Date: Wed, 10 Jan 2018 08:25:48 +0000 (+0000) Subject: custom-chroot: fix /dev/pts mounting on older kernels X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=0e51bf738418b6d35defa0e90640149590306f79;p=home.git custom-chroot: fix /dev/pts mounting on older kernels --- 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