From 6ebaea6990d3b59a1b3a7eaf457302f93e8b9153 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 16 Feb 2026 09:39:40 +0100 Subject: [PATCH] portable: fix log levels portable_extract_by_path() and install_image() can't agree whether to be of the "logging" or "non-logging" kind --- src/portable/portable.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/portable/portable.c b/src/portable/portable.c index 2fe015d94c..c86a6c2722 100644 --- a/src/portable/portable.c +++ b/src/portable/portable.c @@ -471,7 +471,7 @@ static int portable_extract_by_path( _cleanup_close_ int rfd = open(path, O_PATH|O_CLOEXEC); if (rfd < 0) - return log_error_errno(errno, "Failed to open '%s': %m", path); + return log_debug_errno(errno, "Failed to open '%s': %m", path); struct stat st; if (fstat(rfd, &st) < 0) @@ -481,7 +481,7 @@ static int portable_extract_by_path( _cleanup_free_ char *image_name = NULL; r = path_extract_filename(path, &image_name); if (r < 0) - return log_error_errno(r, "Failed to extract image name from path '%s': %m", path); + return log_debug_errno(r, "Failed to extract image name from path '%s': %m", path); if (scope == RUNTIME_SCOPE_USER && uid_is_foreign(st.st_uid)) { _cleanup_close_ int userns_fd = nsresource_allocate_userns( @@ -596,7 +596,7 @@ static int portable_extract_by_path( /* root_hash_path= */ NULL, /* root_hash_sig_path= */ NULL); if (r < 0) - return log_error_errno(r, "Failed to read verity artifacts for %s: %m", path); + return log_debug_errno(r, "Failed to read verity artifacts for %s: %m", path); if (verity.data_path) flags |= DISSECT_IMAGE_NO_PARTITION_TABLE; @@ -1830,11 +1830,11 @@ static int install_image( _cleanup_close_ int fd = open(image_path, O_DIRECTORY|O_CLOEXEC); if (fd < 0) - return log_error_errno(errno, "Failed to open '%s': %m", image_path); + return log_debug_errno(errno, "Failed to open '%s': %m", image_path); struct stat st; if (fstat(fd, &st) < 0) - return log_error_errno(errno, "Failed to stat '%s': %m", image_path); + return log_debug_errno(errno, "Failed to stat '%s': %m", image_path); _cleanup_(sd_varlink_unrefp) sd_varlink *mountfsd_link = NULL; r = mountfsd_connect(&mountfsd_link);