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