diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-11-22 15:59:21 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2022-11-23 10:14:25 +0100 |
commit | 0be160136e649d6a46f8252605cdda8f94e7bdcf (patch) | |
tree | ce967db7e6288b2373a7dee7e7c9f1a8254e827d /src/kernel-install/90-loaderentry.install.in | |
parent | kernel-install: make 90-loadentry.install templated (diff) | |
download | systemd-0be160136e649d6a46f8252605cdda8f94e7bdcf.tar.xz systemd-0be160136e649d6a46f8252605cdda8f94e7bdcf.zip |
kernel-install: add header to generate entry files
I was looking at a bug in bugzilla about some boot loader issue, and it was
hard to say if the boot entry files were generated by our plugin or something
else. Add a header to make this clear.
kernel-install invokes the plugins via absolute path always, so $0 gives as
the full path the location where the plugin is installed. This is what we want:
title Fedora Linux 37 (Workstation Edition)
# Boot Loader Specification type#1 entry
# File created by /usr/lib/kernel/install.d/90-loaderentry.install (systemd 252-409-g5028904^)
Diffstat (limited to 'src/kernel-install/90-loaderentry.install.in')
-rwxr-xr-x | src/kernel-install/90-loaderentry.install.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/kernel-install/90-loaderentry.install.in b/src/kernel-install/90-loaderentry.install.in index 41a05534b9..4e936d95f4 100755 --- a/src/kernel-install/90-loaderentry.install.in +++ b/src/kernel-install/90-loaderentry.install.in @@ -138,6 +138,8 @@ mkdir -p "${LOADER_ENTRY%/*}" || { [ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && echo "Creating $LOADER_ENTRY" { + echo "# Boot Loader Specification type#1 entry" + echo "# File created by $0 (systemd {{GIT_VERSION}})" echo "title $PRETTY_NAME" echo "version $KERNEL_VERSION" if [ "$ENTRY_TOKEN" = "$MACHINE_ID" ]; then |