From 49d920a92824be51cc012ae6d295d7cf80407940 Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Thu, 19 Dec 2019 16:56:55 +0900 Subject: [PATCH] Add kernel setting --- netboot.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/netboot.sh b/netboot.sh index 5860394..7d1dc56 100644 --- a/netboot.sh +++ b/netboot.sh @@ -125,6 +125,10 @@ while [ $# -gt 0 ]; do DEBI_FS=$2 shift ;; + --kernel) + DEBI_KERNEL=$2 + shift + ;; --security) DEBI_SECURITY=$2 shift @@ -387,6 +391,10 @@ $save_preseed << EOF d-i base-installer/install-recommends boolean false EOF +if [ -n "$DEBI_KERNEL" ]; then + echo "d-i base-installer/kernel/image string $DEBI_KERNEL" | $save_preseed +fi + if [ -z "$DEBI_SECURITY" ]; then DEBI_SECURITY=http://security.debian.org/debian-security else