🧹 luks: move initramfs gen into gucc

This commit is contained in:
Vladislav Nepogodin 2024-06-27 00:27:06 +04:00
parent 062323223e
commit 61b8c526d6
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
2 changed files with 1 additions and 2 deletions

View File

@ -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;
}

View File

@ -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
}
}