mmdebstrap-autopkgtest-build-qemu: fix octal mode computation

This commit is contained in:
Francesco Poli 2024-01-29 08:28:53 +01:00 committed by Johannes Schauer Marin Rodrigues
parent 3e233e10df
commit 8410dc6636
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1

View file

@ -357,7 +357,7 @@ echo "mmdebstrap $*"
mmdebstrap "$@" || die "mmdebstrap failed" mmdebstrap "$@" || die "mmdebstrap failed"
unshare -U -r --map-groups=auto chown 0:0 "$IMAGE" unshare -U -r --map-groups=auto chown 0:0 "$IMAGE"
chmod "$(printf %o "$(( 0666 - 0$(umask) ))")" "$IMAGE" chmod "$(printf %o "$(( 0666 & ~0$(umask) ))")" "$IMAGE"
echo "root=LABEL=autopkgtestvm rw console=ttyS0" > "$WORKDIR/cmdline" echo "root=LABEL=autopkgtestvm rw console=ttyS0" > "$WORKDIR/cmdline"