14694918cd
* Thu Dec 17 2020 Fedora Kernel Team <kernel-team@fedoraproject.org> [5.11.0-0.rc0.20201217gite994cc240a3b.102] - build_configs.sh: Fix syntax flagged by shellcheck (Ben Crocker) - genspec.sh: Fix syntax flagged by shellcheck (Ben Crocker) - ark-rebase-patches.sh: Fix for shellcheck (Ben Crocker) - ark-create-release.sh: Fix syntax flagged by shellcheck (Ben Crocker) - merge-subtrees.sh: Fix syntax flagged by shellcheck (Ben Crocker) - rh-dist-git.sh: Fix syntax flagged by shellcheck (Ben Crocker) - update_scripts.sh: Fix syntax flagged by shellcheck (Ben Crocker) - x86_rngd.sh: Fix syntax flagged by shellcheck (Ben Crocker) - parallel_xz.sh: Fix syntax flagged by shellcheck (Ben Crocker) - expand_srpm.sh: Fix syntax flagged by shellcheck (Ben Crocker) - create-tarball.sh: Fix syntax flagged by shellcheck (Ben Crocker) - generate_bls_conf.sh: Fix syntax flagged by shellcheck (Ben Crocker) - clone_tree.sh: Fix syntax flagged by shellcheck (Ben Crocker) - new_release.sh: Fix syntax flagged by shellcheck (Ben Crocker) - download_cross.sh: Fix syntax flagged by shellcheck (Ben Crocker) - create_distgit_changelog.sh: Fix syntax flagged by shellcheck (Ben Crocker) - generate_cross_report.sh: Fix syntax flagged by shellcheck (Ben Crocker) - run_kabi-dw.sh: Fix syntax flagged by shellcheck (Ben Crocker) - mod-blacklist.sh: Fix syntax flagged by shellcheck (Ben Crocker) - scripts/configdiff.sh: Fix syntax flagged by shellcheck (Ben Crocker) Resolves: rhbz# Signed-off-by: Justin M. Forbes <jforbes@fedoraproject.org>
36 lines
821 B
Bash
Executable File
36 lines
821 B
Bash
Executable File
#!/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
|