The gen-image script must not be run as root when generating a tar file. This is because it uses fakechroot and fakeroot, and if run as root, the debootstrap script will end up damaging a large number of devices in the /dev directory. Signed-off-by: Theodore Ts'o <tytso@xxxxxxx> --- kvm-xfstests/test-appliance/gen-image | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kvm-xfstests/test-appliance/gen-image b/kvm-xfstests/test-appliance/gen-image index dbd9b84..e7bdb35 100755 --- a/kvm-xfstests/test-appliance/gen-image +++ b/kvm-xfstests/test-appliance/gen-image @@ -76,6 +76,10 @@ fi if test -n "$OUT_TAR" ; then if test "$FAKECHROOT" != "true" ; then + if test "$EUID" -eq 0 ; then + echo "This script MUST NOT be run as root with --out_tar" + exit 1; + fi set -- "${SAVE_ARGS[@]}" exec fakechroot $0 "$@" fi -- 2.11.0.rc0.7.gbe5a750 -- To unsubscribe from this list: send the line "unsubscribe fstests" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html