summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2022-12-28 08:16:25 +0100
committerHelmut Grohne <helmut@subdivi.de>2022-12-28 08:16:25 +0100
commitd43e76f6f4c3f2e6ce196c5544b7ff5653c024c8 (patch)
tree5b1bf06a438867aacdc834260d962aa2f147eb3e
parent0f8a270a582c3b6bdd4bcb8b6e4eddfb48360866 (diff)
downloaddebvm-d43e76f6f4c3f2e6ce196c5544b7ff5653c024c8.tar.gz
debvm-create: allow easily overriding the kernel image
When adding your own kernel image via -p, it will now skip the automatically detected one.
-rwxr-xr-xdebvm-create10
1 files changed, 7 insertions, 3 deletions
diff --git a/debvm-create b/debvm-create
index a903350..c4159e1 100755
--- a/debvm-create
+++ b/debvm-create
@@ -111,8 +111,6 @@ case "$SUITE" in
;;
esac
-
-
KERNEL_SUFFIX=-$ARCHITECTURE
case "$ARCHITECTURE" in
amd64|arm64)
@@ -138,7 +136,13 @@ case "$ARCHITECTURE" in
;;
esac
-INCLUDE_PACKAGES="$INCLUDE_PACKAGES,linux-image$KERNEL_SUFFIX"
+case ",$INCLUDE_PACKAGES," in
+ *,linux-image-*)
+ ;;
+ *)
+ INCLUDE_PACKAGES="$INCLUDE_PACKAGES,linux-image$KERNEL_SUFFIX"
+ ;;
+esac
if test -n "$SSHKEY"; then
INCLUDE_PACKAGES="$INCLUDE_PACKAGES,openssh-server"