]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
repart: raise log level to LOG_ERR if dlopen_fdisk() fails
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 23 Apr 2026 06:41:30 +0000 (08:41 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 23 Apr 2026 10:16:58 +0000 (12:16 +0200)
libfdisk is required by systemd-repart and it silently exits if dlopen fails
(unless the debug log level is set):

```
$ SYSTEMD_LOG_LEVEL=debug systemd-repart
Shared library 'libfdisk.so.1' is not available: libfdisk.so.1: cannot open shared object file: No such file or directory
$ echo $?
1
```

Follow-up for d49f3f287a0bf72b5b473980cf435f0c0c2413d0

src/repart/repart.c

index 75fb79c48a95978cd269e3518e2729671c5522f3..b089689e736cee8a583a341b9e687d1cf999f9b5 100644 (file)
@@ -11239,7 +11239,7 @@ static int run(int argc, char *argv[]) {
         if (r <= 0)
                 return r;
 
-        r = dlopen_fdisk(LOG_DEBUG);
+        r = dlopen_fdisk(LOG_ERR);
         if (r < 0)
                 return r;