diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-10-11 20:35:54 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-10-11 20:35:54 +0200 |
commit | 767d956d0ecc0db48192afc03a1cbfed79a43cae (patch) | |
tree | 8f86c1341ce5ca8c159b6e010e9d9fef70d21b2e | |
parent | c3336e259f2c56a206565107286fd3dc446be63f (diff) |
Include GRUB modules again
-rwxr-xr-x | mkcryptartix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/mkcryptartix b/mkcryptartix index eb1da85..68094f0 100755 --- a/mkcryptartix +++ b/mkcryptartix @@ -66,6 +66,20 @@ grub-mkconfig -o /boot/grub/grub.cfg mkinitcpio -p linux +# Enable GRUB to unlock /boot +CRYPTO_UUID=$(blkid -s UUID -o value ${PART_PREFIX}1 | tr -d -) +cat <<EOT > /boot/grub/grub-pre.cfg +set crypto_uuid=${CRYPTO_UUID} +cryptomount -u \$crypto_uuid +set root=crypto0 +set prefix=(\$root)/grub +insmod normal +normal +EOT + +grub-mkimage -p /boot/grub -c /boot/grub/grub-pre.cfg -o /boot/grub/${TARGET}/core.img -O ${TARGET} -m /boot/grub/memdisk.tar disk biosdisk diskfilter luks2 part_msdos cryptodisk gcry_rijndael pbkdf2 gcry_sha256 ext2 +grub-bios-setup -d /boot/grub/${TARGET} ${DRIVE} + echo -en 'artix\nartix' | passwd # Network |