diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-03-22 10:48:35 +0100 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-03-22 10:48:35 +0100 |
commit | 12473f3a4aad69f0295cc7e4a68ba2fca81bef22 (patch) | |
tree | fab0ac84b2b219358f02a106810d5ab31fa0f7b7 /src/shared/dissect-image.c | |
parent | Merge pull request #31868 from bluca/test_cleanup (diff) | |
download | systemd-12473f3a4aad69f0295cc7e4a68ba2fca81bef22.tar.xz systemd-12473f3a4aad69f0295cc7e4a68ba2fca81bef22.zip |
dissect-image: Improve error messages
Diffstat (limited to 'src/shared/dissect-image.c')
-rw-r--r-- | src/shared/dissect-image.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/shared/dissect-image.c b/src/shared/dissect-image.c index ad6c5c065f..a0832c9828 100644 --- a/src/shared/dissect-image.c +++ b/src/shared/dissect-image.c @@ -2278,19 +2278,19 @@ int dissected_image_mount_and_warn( r = dissected_image_mount(m, where, uid_shift, uid_range, userns_fd, flags); if (r == -ENXIO) - return log_error_errno(r, "Not root file system found in image."); + return log_error_errno(r, "Failed to mount image: No root file system found in image."); if (r == -EMEDIUMTYPE) - return log_error_errno(r, "No suitable os-release/extension-release file in image found."); + return log_error_errno(r, "Failed to mount image: No suitable os-release/extension-release file in image found."); if (r == -EUNATCH) - return log_error_errno(r, "Encrypted file system discovered, but decryption not requested."); + return log_error_errno(r, "Failed to mount image: Encrypted file system discovered, but decryption not requested."); if (r == -EUCLEAN) - return log_error_errno(r, "File system check on image failed."); + return log_error_errno(r, "Failed to mount image: File system check on image failed."); if (r == -EBUSY) - return log_error_errno(r, "File system already mounted elsewhere."); + return log_error_errno(r, "Failed to mount image: File system already mounted elsewhere."); if (r == -EAFNOSUPPORT) - return log_error_errno(r, "File system type not supported or not known."); + return log_error_errno(r, "Failed to mount image: File system type not supported or not known."); if (r == -EIDRM) - return log_error_errno(r, "File system is too uncommon, refused."); + return log_error_errno(r, "Failed to mount image: File system is too uncommon, refused."); if (r < 0) return log_error_errno(r, "Failed to mount image: %m"); |