Make BLS 'id' and 'version' fields include if it's a debug variant or not.
Signed-off-by: Peter Jones <pjones@redhat.com>
This commit is contained in:
parent
2531049324
commit
92fea70c5b
@ -12,17 +12,19 @@ date=$(date -u +%Y%m%d%H%M%S)
|
|||||||
|
|
||||||
if [ "${variant:-5}" = "debug" ]; then
|
if [ "${variant:-5}" = "debug" ]; then
|
||||||
debugname=" with debugging"
|
debugname=" with debugging"
|
||||||
|
debugid="-debug"
|
||||||
else
|
else
|
||||||
debugname=""
|
debugname=""
|
||||||
|
debugid=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat >${output} <<EOF
|
cat >${output} <<EOF
|
||||||
title ${NAME} (${kernelver}) ${VERSION}${debugname}
|
title ${NAME} (${kernelver}) ${VERSION}${debugname}
|
||||||
version ${kernelver}
|
version ${kernelver}${debugid}
|
||||||
linux ${bootprefix}/vmlinuz-${kernelver}
|
linux ${bootprefix}/vmlinuz-${kernelver}
|
||||||
initrd ${bootprefix}/initramfs-${kernelver}.img
|
initrd ${bootprefix}/initramfs-${kernelver}.img
|
||||||
options \$kernelopts
|
options \$kernelopts
|
||||||
id ${ID}-${date}-${kernelver}
|
id ${ID}-${date}-${kernelver}${debugid}
|
||||||
grub_users \$grub_users
|
grub_users \$grub_users
|
||||||
grub_arg --unrestricted
|
grub_arg --unrestricted
|
||||||
grub_class kernel${variant}
|
grub_class kernel${variant}
|
||||||
|
Loading…
Reference in New Issue
Block a user