repart: raise log level to LOG_ERR if dlopen_fdisk() fails
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 d49f3f287a
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
b54ef83414
commit
f9ac6aced9
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user