summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2025-06-26 18:54:41 +0200
committerHelmut Grohne <helmut@subdivi.de>2025-06-26 18:54:41 +0200
commit96ce94662530433e694e8df4061843449c9399ae (patch)
treee852576152864e47da8602c13377528476f357de
parent043accf447edcb576eb343a9437990f2754b9b7a (diff)
downloaddebvm-debian/bookworm-backports.tar.gz
Leave an apt.conf.d/00mmdebstrap behinddebian/bookworm-backports
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 <cjwatson@debian.org>
-rwxr-xr-xbin/debefivm-create3
1 files changed, 2 insertions, 1 deletions
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 "$@"