This commit is contained in:
teldra 2022-02-09 16:40:46 +01:00
parent dd9d70e2d8
commit 7a2892631c
1 changed files with 3 additions and 3 deletions

View File

@ -33,14 +33,14 @@ config() {
rl=$(basename $(readlink "${TARGET_PHY_ID}-part${TARGET_PART}"))
TMP=$(lsblk -o NAME,UUID -l|grep "${rl}" | awk '{print $2}')
CRYPTUUID=${TMP//-/}
grub-kbdcomp -o ${KEY_LANG}.gkb ${KEY_LANG}
tar cf memdisk.tar ${KEY_LANG}.gkb
mkdir -p /boot/efi/EFI/void /boot/grub
grub-kbdcomp -o /boot/grub/${KEY_LANG}.gkb ${KEY_LANG}
tar cf memdisk.tar ${KEY_LANG}.gkb
echo "set root=(memdisk)" > /boot/grub/early-grub.cfg
echo "set prefix=($root)/" >> /boot/grub/early-grub.cfg
echo "terminal_input at_keyboard" >> /boot/grub/early-grub.cfg
echo "keymap /${KEY_LANG}.gkb" >> /boot/grub/early-grub.cfg
echo "keymap /boot/grub/${KEY_LANG}.gkb" >> /boot/grub/early-grub.cfg
echo "cryptomount -u ${CRYPTUUID}" >> /boot/grub/early-grub.cfg
echo "set root='lvmid/${VGUUID}/${lVUUID}'" >> /boot/grub/early-grub.cfg
echo "set prefix=($root)/grub" >> /boot/grub/early-grub.cfg