ignatenkobrain / rpms / kernel

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