Skip to content

Commit

Permalink
🧹 luks: move initramfs gen into gucc
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jun 26, 2024
1 parent 0623232 commit 61b8c52
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions gucc/src/luks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 0 additions & 2 deletions src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 61b8c52

Please sign in to comment.