summaryrefslogtreecommitdiffstats
path: root/generate_bls_conf.sh
diff options
context:
space:
mode:
authorThorsten Leemhuis <fedora@leemhuis.info>2021-07-08 09:05:49 +0200
committerThorsten Leemhuis <fedora@leemhuis.info>2021-07-08 09:05:49 +0200
commit2615a1ce1163e2180780acab0157ccd8cf9404ab (patch)
tree3a8a87cacf96523f2c43203a997c8dac06c276ad /generate_bls_conf.sh
parent7fea8875b5dbb16f2254f3e796e58d1d4adc7272 (diff)
parentbb0aad375410a7dcc5d60d55b017ed8718bf2a52 (diff)
downloadkernel-2615a1ce1163e2180780acab0157ccd8cf9404ab.tar.gz
kernel-2615a1ce1163e2180780acab0157ccd8cf9404ab.tar.xz
kernel-2615a1ce1163e2180780acab0157ccd8cf9404ab.zip
Diffstat (limited to 'generate_bls_conf.sh')
-rwxr-xr-xgenerate_bls_conf.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/generate_bls_conf.sh b/generate_bls_conf.sh
deleted file mode 100755
index 03b21821f..000000000
--- a/generate_bls_conf.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-set -e
-
-# shellcheck disable=SC1091
-. /etc/os-release
-
-kernelver=$1 && shift
-rootfs=$1 && shift
-variant=$1 && shift
-
-output="${rootfs}/lib/modules/${kernelver}/bls.conf"
-date=$(date -u +%Y%m%d%H%M%S)
-
-if [ "${variant:-5}" = "debug" ]; then
- debugname=" with debugging"
- debugid="-debug"
-else
- debugname=""
- debugid=""
-fi
-
-# 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}
-EOF