Skip to content
Snippets Groups Projects
Commit c26db49a authored by Recolic Keghart's avatar Recolic Keghart
Browse files

Update hook-kernel-rename.sh

parent 30d1f9d8
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@ while read -r line; do
fi
# Generates a filename for the kernel, and limit the length, convert to lowercase
new_pkgbase="${pkgbase}-$(cat /etc/hostname)"
new_pkgbase="${pkgbase}-$(hostname 2>/dev/null || cat /etc/hostname)"
new_pkgbase="${new_pkgbase:0:63}"
new_pkgbase="${new_pkgbase,,}" # since bash 4.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment