From a84710d8cd833f3f3e2bb59e47857160e21929f7 Mon Sep 17 00:00:00 2001 From: Bohan Yang Date: Wed, 14 Aug 2019 15:48:41 +0800 Subject: [PATCH] Fix --- netboot.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/netboot.sh b/netboot.sh index b3171cd..5860394 100644 --- a/netboot.sh +++ b/netboot.sh @@ -425,6 +425,13 @@ popularity-contest popularity-contest/participate boolean false d-i grub-installer/only_debian boolean true d-i grub-installer/bootdev string default +EOF + +if [ -n "$DEBI_KERNEL_PARAMS" ]; then + echo "d-i debian-installer/add-kernel-opts string$DEBI_KERNEL_PARAMS" | $save_preseed +fi + +$save_preseed << EOF # Finishing up the installation