Blame SOURCES/generate_bls_conf.sh

b1b780
#!/bin/bash
b1b780
set -e
b1b780
b1b780
. /etc/os-release
b1b780
b1b780
kernelver=$1 && shift
b1b780
rootfs=$1 && shift
b1b780
variant=$1 && shift
b1b780
b1b780
output="${rootfs}/lib/modules/${kernelver}/bls.conf"
b1b780
date=$(date -u +%Y%m%d%H%M%S)
b1b780
b1b780
if [ "${variant:-5}" = "debug" ]; then
b1b780
    debugname=" with debugging"
b1b780
    debugid="-debug"
b1b780
else
b1b780
    debugname=""
b1b780
    debugid=""
b1b780
fi
b1b780
b1b780
cat >${output} <
b1b780
title ${NAME} (${kernelver}) ${VERSION}${debugname}
b1b780
version ${kernelver}${debugid}
b1b780
linux ${bootprefix}/vmlinuz-${kernelver}
b1b780
initrd ${bootprefix}/initramfs-${kernelver}.img
b1b780
options \$kernelopts
b1b780
id ${ID}-${date}-${kernelver}${debugid}
b1b780
grub_users \$grub_users
b1b780
grub_arg --unrestricted
b1b780
grub_class kernel${variant}
b1b780
EOF