mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
build/roms: regression fix: uninitialised variable
the "kmapdir" variable was removed in an earlier audit, but was overlooked for -k because that option was untested. rather than initialise the variable, re-use grubcfgsdir. this fix enables e.g. "-k usdvorak" to work again. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ build_grub_payload()
|
||||
[ -f "elf/grub/keymap_$keymap.cfg" ] || printf "keymap %s\n" \
|
||||
"$keymap" > "elf/grub/keymap_$keymap.cfg" || err "!key"; :
|
||||
done
|
||||
[ -n "${_keyboard}" ] && keymaps="${kmapdir}/${_keyboard}.gkb"
|
||||
[ -n "$_keyboard" ] && keymaps="${grubcfgsdir}/keymap/${_keyboard}.gkb"
|
||||
[ -f "$grubelf" ] && return 0
|
||||
[ -f "src/grub/grub-mkstandalone" ] || x_ ./update trees -b grub
|
||||
|
||||
|
||||
Reference in New Issue
Block a user