From df279c8292bc2d9aa40ebbd8ea7fbe130afbdc1e Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Wed, 4 Sep 2024 13:48:30 -0600 Subject: [PATCH] autopkgtest: change workdir As seen in LP: #2078980, the default workdir under /tmp may be mounted nodev, so create our own. --- debian/tests/default-bootstraps | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debian/tests/default-bootstraps b/debian/tests/default-bootstraps index e5ef020a..62a71976 100755 --- a/debian/tests/default-bootstraps +++ b/debian/tests/default-bootstraps @@ -78,7 +78,8 @@ live_build_rootfs() { echo "" } -WORKDIR=$(mktemp -d) +[ -d /adt ] || mkdir /adt +WORKDIR=$(mktemp -d -p /adt) trap "RET=\$?; rm -rf $WORKDIR; exit \$RET" 0 INT QUIT ABRT PIPE TERM cd $WORKDIR