* [xfstests-bld PATCH] android-xfstests: mount /dev/pts in chroot
@ 2017-09-08 23:56 Eric Biggers
0 siblings, 0 replies; only message in thread
From: Eric Biggers @ 2017-09-08 23:56 UTC (permalink / raw)
To: Theodore Ts'o; +Cc: fstests, Eric Biggers
From: Eric Biggers <ebiggers@google.com>
Since the upgrade of the chroot tarball to Debian Stretch, it's now
expected that devpts be mounted in the chroot. Otherwise there is a
warning message like the following when the shell starts:
mesg: ttyname failed: Success
Android mounts devpts already, so just bind-mount it into the chroot.
Signed-off-by: Eric Biggers <ebiggers@google.com>
---
kvm-xfstests/android-xfstests | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kvm-xfstests/android-xfstests b/kvm-xfstests/android-xfstests
index 8e5b77c..e204e2f 100755
--- a/kvm-xfstests/android-xfstests
+++ b/kvm-xfstests/android-xfstests
@@ -227,6 +227,7 @@ chroot_prepare()
! mountpoint $CHROOT_DIR/sys > /dev/null && mount sysfs -t sysfs $CHROOT_DIR/sys
! mountpoint $CHROOT_DIR/proc > /dev/null && mount proc -t proc $CHROOT_DIR/proc
! mountpoint $CHROOT_DIR/dev > /dev/null && mount --bind /dev $CHROOT_DIR/dev
+! mountpoint $CHROOT_DIR/dev/pts > /dev/null && mount --bind /dev/pts $CHROOT_DIR/dev/pts
# Allow xfstests to detect that SELinux is in use.
! mountpoint $CHROOT_DIR/sys/fs/selinux > /dev/null && \
@@ -258,6 +259,7 @@ chroot_wipe()
umount $CHROOT_DIR/sys/fs/selinux &> /dev/null
umount $CHROOT_DIR/sys &> /dev/null
umount $CHROOT_DIR/proc &> /dev/null
+umount $CHROOT_DIR/dev/pts &> /dev/null
umount $CHROOT_DIR/dev &> /dev/null
umount $CHROOT_DIR/results &> /dev/null
rm -rf $CHROOT_DIR
--
2.14.1.581.gf28d330327-goog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-09-08 23:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-08 23:56 [xfstests-bld PATCH] android-xfstests: mount /dev/pts in chroot Eric Biggers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox