progress
This commit is contained in:
parent
c1f04f8bad
commit
20c60993c8
|
@ -33,6 +33,7 @@ config() {
|
||||||
rl=$(basename $(readlink "${TARGET_PHY_ID}-part${TARGET_PART}"))
|
rl=$(basename $(readlink "${TARGET_PHY_ID}-part${TARGET_PART}"))
|
||||||
TMP=$(lsblk -o NAME,UUID -l|grep "${rl}" | awk '{print $2}')
|
TMP=$(lsblk -o NAME,UUID -l|grep "${rl}" | awk '{print $2}')
|
||||||
CRYPTUUID=${TMP//-/}
|
CRYPTUUID=${TMP//-/}
|
||||||
|
BTRFSUUID=$()
|
||||||
|
|
||||||
mkdir -p /boot/efi/EFI/void /boot/grub
|
mkdir -p /boot/efi/EFI/void /boot/grub
|
||||||
grub-kbdcomp -o /boot/grub/${KEY_LANG}.gkb ${KEY_LANG}
|
grub-kbdcomp -o /boot/grub/${KEY_LANG}.gkb ${KEY_LANG}
|
||||||
|
@ -40,6 +41,7 @@ config() {
|
||||||
|
|
||||||
echo "set root=(memdisk)" > /boot/grub/early-grub.cfg
|
echo "set root=(memdisk)" > /boot/grub/early-grub.cfg
|
||||||
echo "set prefix=($root)/" >> /boot/grub/early-grub.cfg
|
echo "set prefix=($root)/" >> /boot/grub/early-grub.cfg
|
||||||
|
echo "insmod gzio" >> /boot/grub/early-grub.cfg
|
||||||
echo "insmod part_gpt" >> /boot/grub/early-grub.cfg
|
echo "insmod part_gpt" >> /boot/grub/early-grub.cfg
|
||||||
echo "insmod cryptodisk" >> /boot/grub/early-grub.cfg
|
echo "insmod cryptodisk" >> /boot/grub/early-grub.cfg
|
||||||
echo "insmod luks" >> /boot/grub/early-grub.cfg
|
echo "insmod luks" >> /boot/grub/early-grub.cfg
|
||||||
|
@ -55,16 +57,19 @@ config() {
|
||||||
echo "insmod configfile" >> /boot/grub/early-grub.cfg
|
echo "insmod configfile" >> /boot/grub/early-grub.cfg
|
||||||
echo "insmod all_video" >> /boot/grub/early-grub.cfg
|
echo "insmod all_video" >> /boot/grub/early-grub.cfg
|
||||||
echo "terminal_input at_keyboard" >> /boot/grub/early-grub.cfg
|
echo "terminal_input at_keyboard" >> /boot/grub/early-grub.cfg
|
||||||
echo "keymap /boot/grub/${KEY_LANG}.gkb" >> /boot/grub/early-grub.cfg
|
echo "keymap /${KEY_LANG}.gkb" >> /boot/grub/early-grub.cfg
|
||||||
echo "cryptomount -u ${CRYPTUUID}" >> /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 root='lvmid/${VGUUID}/${LVUUID}'" >> /boot/grub/early-grub.cfg
|
||||||
echo "set prefix=($root)/grub" >> /boot/grub/early-grub.cfg
|
echo "set prefix=($root)/rootfs/boot/grub" >> /boot/grub/early-grub.cfg
|
||||||
echo "configfile grub.cfg" >> /boot/grub/early-grub.cfg
|
echo "configfile grub.cfg" >> /boot/grub/early-grub.cfg
|
||||||
|
|
||||||
grub-mkimage -c /boot/grub/early-grub.cfg -o grubx64_de.efi -O x86_64-efi -m /boot/grub/memdisk.tar part_gpt cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha256 lvm btrfs memdisk tar at_keyboard keylayouts configfile all_video
|
echo "cp -rf /boot/grub/memdisk.tar /boot/grub/early-grub.cfg ." > /usr/bin/gen-grub
|
||||||
cp -f grubx64_de.efi /boot/efi/EFI/void/grubx64_de.efi
|
echo "grub-mkimage -c early-grub.cfg -o grubx64_de.efi -O x86_64-efi -m memdisk.tar gzio part_gpt cryptodisk luks gcry_rijndael gcry_rijndael gcry_sha256 lvm btrfs memdisk tar at_keyboard keylayouts configfile all_video" >> /usr/bin/gen-grub
|
||||||
|
echo "rm -rf memdisk.tar early-grub.cfg" >> /usr/bin/gen-grub
|
||||||
|
chmod +x /usr/bin/gen-grub
|
||||||
|
gen-grub
|
||||||
|
mv grubx64_de.efi /boot/efi/EFI/void/grubx64_de.efi
|
||||||
|
|
||||||
rm -rf grubx64_de.efi memdisk.tar
|
|
||||||
fi
|
fi
|
||||||
if ! grep -q rd.console.keymap /etc/default/grub; then
|
if ! grep -q rd.console.keymap /etc/default/grub; then
|
||||||
sed -i "/^GRUB_CMDLINE_LINUX_DEFAULT/s/=\"/=\" rd.vconsole.keymap=${L2} /" /etc/default/grub
|
sed -i "/^GRUB_CMDLINE_LINUX_DEFAULT/s/=\"/=\" rd.vconsole.keymap=${L2} /" /etc/default/grub
|
||||||
|
|
Loading…
Reference in New Issue
Block a user