diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-08-17 22:07:55 +0200 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2020-08-26 14:33:29 +0200 |
commit | 6c5d216ad8b727fde0fe801ad20da2e0377e362c (patch) | |
tree | e4d9f969795fd2c1c03a201c84349461b5ea9838 | |
parent | 1708f06a00ff7d1a2f3794be1e47b35814ec02bf (diff) | |
download | systemd-6c5d216ad8b727fde0fe801ad20da2e0377e362c.tar.gz |
homework: downgrade chattr failure log message
NOCOW is a btrfs-only thing hence don't log louder than necessary if we
don't have it.
(cherry picked from commit 64dc138d1ebbe11eda7872522263a35237916183)
-rw-r--r-- | src/home/homework-luks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c index de272e1adb..0d53fa4d14 100644 --- a/src/home/homework-luks.c +++ b/src/home/homework-luks.c @@ -2017,7 +2017,8 @@ int home_create_luks( r = chattr_fd(image_fd, FS_NOCOW_FL, FS_NOCOW_FL, NULL); if (r < 0) - log_warning_errno(r, "Failed to set file attributes on %s, ignoring: %m", temporary_image_path); + log_full_errno(ERRNO_IS_NOT_SUPPORTED(r) ? LOG_DEBUG : LOG_WARNING, r, + "Failed to set file attributes on %s, ignoring: %m", temporary_image_path); r = home_truncate(h, image_fd, temporary_image_path, host_size); if (r < 0) |