autopkgtest: change workdir

As seen in LP: #2078980, the default workdir under /tmp may be mounted
nodev, so create our own.
ubuntu/oracular
Dan Bungert 4 months ago
parent 9d57bd093e
commit df279c8292

@ -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

Loading…
Cancel
Save