summaryrefslogtreecommitdiff
path: root/SOURCES/generate_bls_conf.sh
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2021-03-21 13:18:24 +0100
committerJan200101 <sentrycraft123@gmail.com>2021-03-21 13:18:24 +0100
commit0d03bbfed690ac4a025e90346a673b8607742122 (patch)
tree27a7d9904a5e5409c7efadf64e5c126946bc5bf2 /SOURCES/generate_bls_conf.sh
parentd6d4fd75919f9e864611d09547f97e7136e1b22d (diff)
downloadkernel-fsync-0d03bbfed690ac4a025e90346a673b8607742122.tar.gz
kernel-fsync-0d03bbfed690ac4a025e90346a673b8607742122.zip
kernel 5.11.7
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}