diff --git a/gucc/src/luks.cpp b/gucc/src/luks.cpp index 9784664..b7be8f6 100644 --- a/gucc/src/luks.cpp +++ b/gucc/src/luks.cpp @@ -64,6 +64,7 @@ auto luks1_setup_keyfile(std::string_view dest_file, std::string_view mountpoint } spdlog::info("Adding keyfile to the initcpio"); + utils::arch_chroot("mkinitcpio -P", mountpoint); return true; } diff --git a/src/utils.cpp b/src/utils.cpp index aedaebe..1eab053 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -2037,8 +2037,6 @@ void setup_luks_keyfile() noexcept { if (!gucc::crypto::luks1_setup_keyfile(keyfile_path, "/mnt", partition, "--pbkdf-force-iterations 200000")) { return; } - - utils::arch_chroot("mkinitcpio -P"); #endif } }