diff --git a/src/boot/bootctl-random-seed.c b/src/boot/bootctl-random-seed.c index 7d6e863728..f39a396a51 100644 --- a/src/boot/bootctl-random-seed.c +++ b/src/boot/bootctl-random-seed.c @@ -58,7 +58,7 @@ int install_random_seed(const char *esp) { return log_error_errno(SYNTHETIC_ERRNO(EIO), "Short write while writing random seed file."); if (rename(tmp, path) < 0) - return log_error_errno(r, "Failed to move random seed file into place: %m"); + return log_error_errno(errno, "Failed to move random seed file into place: %m"); tmp = mfree(tmp);