summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"