diff options
author | Ax333l | 2023-02-09 19:09:39 +0100 |
---|---|---|
committer | Ax333l | 2023-02-09 19:09:39 +0100 |
commit | 81816058c4cb0f1cf7907153b778ed9cf8f363d7 (patch) | |
tree | a79c70bcfad91b371f181e99f91fd8455affc749 | |
parent | d252de48182cab0bcee4905a481792ae288cece1 (diff) | |
download | aur-81816058c4cb0f1cf7907153b778ed9cf8f363d7.tar.gz |
fix: properly preload argon2 module
-rw-r--r-- | grub-install_luks2.patch | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/grub-install_luks2.patch b/grub-install_luks2.patch index ae1f946415ba..a104f39bc8f2 100644 --- a/grub-install_luks2.patch +++ b/grub-install_luks2.patch @@ -1,14 +1,13 @@ -diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in -index 6a316a5ba..4769004c3 100644 ---- a/util/grub.d/00_header.in -+++ b/util/grub.d/00_header.in -@@ -33,6 +33,9 @@ for i in ${GRUB_PRELOAD_MODULES} ; do - echo "insmod $i" - done - -+# HACK: always load argon2 module -+echo "insmod argon2" -+ - if [ "x${GRUB_DEFAULT}" = "x" ] ; then GRUB_DEFAULT=0 ; fi - if [ "x${GRUB_DEFAULT}" = "xsaved" ] ; then GRUB_DEFAULT='${saved_entry}' ; fi - if [ "x${GRUB_TIMEOUT}" = "x" ] ; then GRUB_TIMEOUT=5 ; fi +diff --git a/util/grub-install.c b/util/grub-install.c +index 53b464804..2bf02a3b6 100644 +--- a/util/grub-install.c ++++ b/util/grub-install.c +@@ -446,6 +446,8 @@ probe_mods (grub_disk_t disk) + { + grub_util_cryptodisk_get_abstraction (disk, + push_cryptodisk_module, NULL); ++ /* HACK: always push argon2 */ ++ grub_install_push_module ("argon2"); + have_abstractions = 1; + have_cryptodisk = 1; + } |