bootctl: move conditions into corresponding functions

This commit is contained in:
Yu Watanabe
2025-11-02 16:07:46 +09:00
parent 61d1f394cc
commit 1b48b63b51
2 changed files with 12 additions and 10 deletions
+3
View File
@@ -122,6 +122,9 @@ int install_random_seed(const char *esp) {
assert_cc(RANDOM_EFI_SEED_SIZE == SHA256_DIGEST_SIZE);
if (!arg_install_random_seed)
return 0;
esp_fd = open(esp, O_DIRECTORY|O_RDONLY|O_CLOEXEC);
if (esp_fd < 0)
return log_error_errno(errno, "Failed to open ESP directory '%s': %m", esp);