Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archiso
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2021-04-01 14:24:12 +0200
committerDavid Runge <dvzrv@archlinux.org>2021-04-07 16:40:18 +0000
commit1a9710963996e476790d7a351b57b090866c9b71 (patch)
tree6dee6ed3c05a2d15fe55091023fcccd00cebd7c3 /archiso
parent09b6127fe8cabaf9a54a3bb864b0e3e009ca8476 (diff)
mkarchiso: also add iso name in grub environment block
Diffstat (limited to 'archiso')
-rwxr-xr-xarchiso/mkarchiso5
1 files changed, 3 insertions, 2 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso
index 439e8d0..f08d8f6 100755
--- a/archiso/mkarchiso
+++ b/archiso/mkarchiso
@@ -937,8 +937,9 @@ _make_version() {
_msg_info "Creating files with iso version..."
printf '%s\n' "${iso_version}" > "${airootfs_dir}/version"
printf '%s\n' "${iso_version}" > "${isofs_dir}/${install_dir}/version"
- printf '%.1024s' "$(printf '# GRUB Environment Block\nVERSION=%s\n%s' "${iso_version}" \
- "$(printf '%0.1s' "#"{1..1024})")" > "${isofs_dir}/${install_dir}/grubenv"
+ printf '%.1024s' "$(printf '# GRUB Environment Block\nNAME=%s\nVERSION=%s\n%s' \
+ "${iso_name}" "${iso_version}" "$(printf '%0.1s' "#"{1..1024})")" \
+ > "${isofs_dir}/${install_dir}/grubenv"
_msg_info "Done!"
}