aboutsummaryrefslogtreecommitdiff
path: root/SOURCES/generate_bls_conf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'SOURCES/generate_bls_conf.sh')
-rwxr-xr-xSOURCES/generate_bls_conf.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/SOURCES/generate_bls_conf.sh b/SOURCES/generate_bls_conf.sh
index fc3f0e8..03b2182 100755
--- a/SOURCES/generate_bls_conf.sh
+++ b/SOURCES/generate_bls_conf.sh
@@ -1,6 +1,7 @@
#!/bin/bash
set -e
+# shellcheck disable=SC1091
. /etc/os-release
kernelver=$1 && shift
@@ -18,12 +19,16 @@ else
debugid=""
fi
-cat >${output} <<EOF
+# shellcheck will complain about bootprefix being referenced but not assigned,
+# but that is perfectly OK here.
+# shellcheck disable=SC2154
+cat > "$output" <<EOF
title ${NAME} (${kernelver}) ${VERSION}${debugname}
version ${kernelver}${debugid}
linux ${bootprefix}/vmlinuz-${kernelver}
initrd ${bootprefix}/initramfs-${kernelver}.img
options \$kernelopts
+id ${ID}-${date}-${kernelver}${debugid}
grub_users \$grub_users
grub_arg --unrestricted
grub_class kernel${variant}