mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
Use VERSION_TAG instead of GIT_VERSION in kernel-install scripts
GIT_VERSION only makes sense for C files as it depends on C preprocessor macro expansion now so let's use VERSION_TAG instead of GIT_VERSION for the two remaining usages of GIT_VERSION that are not in C files.
This commit is contained in:
parent
da95494ca3
commit
76940e0a04
@ -27,7 +27,7 @@ from shutil import which
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from typing import Optional
|
from typing import Optional
|
||||||
|
|
||||||
__version__ = '{{PROJECT_VERSION_FULL}} ({{GIT_VERSION}})'
|
__version__ = '{{PROJECT_VERSION_FULL}} ({{VERSION_TAG}})'
|
||||||
|
|
||||||
try:
|
try:
|
||||||
VERBOSE = int(os.environ['KERNEL_INSTALL_VERBOSE']) > 0
|
VERBOSE = int(os.environ['KERNEL_INSTALL_VERBOSE']) > 0
|
||||||
|
@ -181,7 +181,7 @@ mkdir -p "${LOADER_ENTRY%/*}" || {
|
|||||||
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && echo "Creating $LOADER_ENTRY"
|
[ "$KERNEL_INSTALL_VERBOSE" -gt 0 ] && echo "Creating $LOADER_ENTRY"
|
||||||
{
|
{
|
||||||
echo "# Boot Loader Specification type#1 entry"
|
echo "# Boot Loader Specification type#1 entry"
|
||||||
echo "# File created by $0 (systemd {{GIT_VERSION}})"
|
echo "# File created by $0 (systemd {{VERSION_TAG}})"
|
||||||
echo "title $PRETTY_NAME $KERNEL_VERSION"
|
echo "title $PRETTY_NAME $KERNEL_VERSION"
|
||||||
echo "version $KERNEL_VERSION"
|
echo "version $KERNEL_VERSION"
|
||||||
if [ "$ENTRY_TOKEN" = "$MACHINE_ID" ]; then
|
if [ "$ENTRY_TOKEN" = "$MACHINE_ID" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user