From 3b3f7fe50c8092ddb7b09363b4d9f45c4cf38d39 Mon Sep 17 00:00:00 2001
From: Francis Rowe
- grub_memdisk_keymap simply adds all the keyboard layout - files. The keymap files are in keymap/, and - can be added to using the instructions at - ../grub/index.html#grub_custom_keyboard. -
- +
modules.conf defines which modules will be included in the GRUB
ELF executable.
diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.sh
index e044efd..7b836a6 100755
--- a/resources/utilities/grub-assemble/gen.sh
+++ b/resources/utilities/grub-assemble/gen.sh
@@ -23,6 +23,14 @@ grubdir="../../../grub"
source "modules.conf"
+list_keymaps () {
+ for keylayout in keymap/original/*
+ do
+ keymap="${keylayout##*/}"
+ printf "/boot/grub/layouts/%s.gkb=keymap/%s.gkb " "${keymap}" "${keymap}"
+ done
+}
+
printf "Creating GRUB ELF executable for configuration '%s'\n" "${1}"
if [ "${1}" = "vesafb" ]
then
@@ -37,7 +45,7 @@ then
--install-modules="${grub_install_modules}" \
/boot/grub/grub.cfg="../../../resources/grub/config/grub_memdisk.cfg" \
/dejavusansmono.pf2="../../../resources/grub/font/dejavusansmono.pf2" \
- $(./grub_memdisk_keymap)
+ $(list_keymaps)
elif [ "${1}" = "txtmode" ]
then
# Generate the grub.elf (txtmode)
@@ -51,7 +59,7 @@ then
--install-modules="${grub_install_modules}" \
/boot/grub/grub.cfg="../../../resources/grub/config/grub_memdisk.cfg" \
/memtest="../../../memtest86plus/memtest" \
- $(./grub_memdisk_keymap)
+ $(list_keymaps)
else
printf "grub-assemble gen.sh: invalid mode '%s'\n" "${1}"
exit 1
diff --git a/resources/utilities/grub-assemble/grub_memdisk_keymap b/resources/utilities/grub-assemble/grub_memdisk_keymap
deleted file mode 100755
index 451a69f..0000000
--- a/resources/utilities/grub-assemble/grub_memdisk_keymap
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-
-#
-# lists keymaps
-#
-# Copyright (C) 2014, 2015 Francis Rowe