From 96ce94662530433e694e8df4061843449c9399ae Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 26 Jun 2025 18:54:41 +0200 Subject: Leave an apt.conf.d/00mmdebstrap behind bookworm's mmdebstrap fails when it's not present, but we do not want it to be in the generated ext4 image. Reported-by: Colin Watson --- bin/debefivm-create | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin/debefivm-create') diff --git a/bin/debefivm-create b/bin/debefivm-create index f6368df..627c039 100755 --- a/bin/debefivm-create +++ b/bin/debefivm-create @@ -421,7 +421,8 @@ set -- "$@" \ '--customize-hook=mount -t tmpfs tmpfs "$1/mnt/dev" -o mode=0755' \ '--customize-hook=rm -f "$1/usr/sbin/policy-rc.d"' \ '--customize-hook=/sbin/mkfs.ext4 -d "$1/mnt" -L '"'$ROOTLABEL' -E '$EXT4_OPTIONS' '$IMAGE' '${EXT4_SIZE_KIB}K'" \ - '--customize-hook=umount --lazy "$1/mnt"' + '--customize-hook=umount --lazy "$1/mnt"' \ + '--customize-hook=touch "$1/etc/apt/apt.conf.d/00mmdebstrap"' set -- mmdebstrap "$@" -- cgit v1.2.3