summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2023-01-17 07:54:21 +0100
committerHelmut Grohne <helmut@subdivi.de>2023-01-17 07:54:21 +0100
commitf524f063ea335221c1ee2a74ba18f7b5a808fdb5 (patch)
tree35765ea8a2ef994b2ede4e1184d17afedca54a7b /bin
parenta3663dadb32c262adbb453af0dceb58ab495a258 (diff)
downloaddebvm-f524f063ea335221c1ee2a74ba18f7b5a808fdb5.tar.gz
debvm-create: combine ?exact-name with ?not(virtual)
When apt encounters a package that does not exist, but is referenced via Recommends, Suggests, Breaks or otherwise, it errors out with a missing installation candidate. This happens for linux-image-generic on buster. To avoid this situation, we specifically ask apt to not consider virtual packages whenever we use ?exact-name.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/debvm-create4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/debvm-create b/bin/debvm-create
index 31e1e45..95305a9 100755
--- a/bin/debvm-create
+++ b/bin/debvm-create
@@ -231,7 +231,7 @@ case "$ARCHITECTURE" in
esac
if ! check_skip kernel; then
- set -- "--include=?or(?exact-name(linux-image-cloud-$KERNEL_ARCH),?exact-name(linux-image-$KERNEL_ARCH),?exact-name(linux-image-generic))" "$@"
+ set -- "--include=?not(?virtual)?or(?exact-name(linux-image-cloud-$KERNEL_ARCH),?exact-name(linux-image-$KERNEL_ARCH),?exact-name(linux-image-generic))" "$@"
fi
# construct mmdebstrap options as $@:
@@ -257,7 +257,7 @@ if ! check_skip systemdnetwork; then
# dhcp on all network interfaces, and add a dns resolver
set -- \
"--customize-hook=$SHARE_DIR/customize-networkd.sh" \
- '--include=?exact-name(libnss-resolve)' \
+ '--include=?not(?virtual)?exact-name(libnss-resolve)' \
"--customize-hook=$SHARE_DIR/customize-resolved.sh" \
"$@"
fi