[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#884552: debian-cd: Support KERNEL_PARAMS in arm64



Package: debian-cd
Version: 3.1.20
Severity: normal
Tags: patch

Currently, debian-cd does not modify the grub.cfg to include
KERNEL_PARAMS on arm64.  On x86, it works because it derives the grub
entries from isolinux configuration files, which do support
KERNEL_PARAMS.

The following patch adds support for this for stretch and buster on
arm64.

diff --git a/tools/boot/buster/boot-arm64 b/tools/boot/buster/boot-arm64
index f7cbe42..d00b5f2 100755
--- a/tools/boot/buster/boot-arm64
+++ b/tools/boot/buster/boot-arm64
@@ -155,6 +155,9 @@ if [ -d boot$N/grub ] ; then
     # in case they're still there
     sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
 
+    # Substitute custom KERNEL_PARAMS into grub.cfg
+    sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
+
 else
     echo "  No EFI boot code for $ARCH on CD$N"
 fi
diff --git a/tools/boot/stretch/boot-arm64 b/tools/boot/stretch/boot-arm64
index f7cbe42..d00b5f2 100755
--- a/tools/boot/stretch/boot-arm64
+++ b/tools/boot/stretch/boot-arm64
@@ -155,6 +155,9 @@ if [ -d boot$N/grub ] ; then
     # in case they're still there
     sed -i "s,\%install\%,$INSTALLDIR,g" $CDDIR/boot/grub/grub.cfg
 
+    # Substitute custom KERNEL_PARAMS into grub.cfg
+    sed -i "s,/vmlinuz ,/vmlinuz $KERNEL_PARAMS ,g" $CDDIR/boot/grub/grub.cfg
+
 else
     echo "  No EFI boot code for $ARCH on CD$N"
 fi


live well,
  vagrant

Attachment: signature.asc
Description: PGP signature


Reply to: