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

hook-kernel-rename.sh: Get hostname without using external tools

parent 7bb53ec5
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}-$(hostname)"
new_pkgbase="${pkgbase}-$(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