#1106861 mmdebstrap-autopkgtest-build-qemu: lacks depends on newer dash for pipefail

#1106861#5
Date:
2025-05-30 15:51:31 UTC
From:
To:
mmdebstrap-autopkgtest-build-qemu uses -o pipefail and in a code comment
links to documentation where pipefail was adder to a newer POSIX standard.

However dash, which I believe is the default /bin/sh on bookworm, does
not support that on bookworm:

 $ mmdebstrap-autopkgtest-build-qemu --size=10G --boot=efi unstable unstable-autopkgtest-amd64.img
 $ mmdebstrap-autopkgtest-build-qemu --size=10G --boot=efi unstable unstable-autopkgtest-amd64.img
+ mmdebstrap --mode=unshare --format=tar --variant=important --architecture=amd64 --include=init,linux-image-amd64,python3 --customize-hook=echo host >"$1/etc/hostname" --customize-hook=echo 127.0.0.1 localhost host >"$1/etc/hosts" --customize-hook=passwd --root "$1" --delete root --customize-hook=useradd --root "$1" --home-dir /home/user --create-home user --customize-hook=passwd --root "$1" --delete user --customize-hook=/usr/share/autopkgtest/setup-commands/setup-testbed --customize-hook=download vmlinuz '/tmp/tmp.7yCjy3DjWH/kernel' --customize-hook=download initrd.img '/tmp/tmp.7yCjy3DjWH/initrd' unstable -
/usr/bin/mmdebstrap-autopkgtest-build-qemu: 375: set: Illegal option -o pipefail

I guess this should depend on a newer dash, or use bash on older systems.

Best,
Christian