diff options
Diffstat (limited to 'projects/grub/grub-helper')
-rwxr-xr-x | projects/grub/grub-helper | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/projects/grub/grub-helper b/projects/grub/grub-helper index 342b03eb..3e1420ac 100755 --- a/projects/grub/grub-helper +++ b/projects/grub/grub-helper @@ -82,10 +82,15 @@ grub_build_utils() { grub_build_layout() { local raw_layout="${1##*/}" local raw_layout_path="$1" - local grub_kbdcomp="${sources_path}/grub-kbdcomp" - local grub_kbd_layout="${build_path}/${raw_layout}.gkb" + local keymap_out_path="${build_path}/keymaps" + local grub_mklayout="${sources_path}/grub-mklayout" + local grub_kbd_layout="${keymap_out_path}/${raw_layout}.gkb" - "${grub_kbdcomp}" --output="${grub_kbd_layout}" "${raw_layout_path}" + if ! [[ -e "${keymap_out_path}" ]]; then + mkdir -p "${keymap_out_path}" + fi + + "${grub_mklayout}" --output="${grub_kbd_layout}" --input="${raw_layout_path}" } grub_build_bootable_image() { |