chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
288c783
)
fsck: suppress error message if we cannot change into single user mode since we are...
author
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Oct 2010 14:12:56 +0000
(16:12 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 22 Oct 2010 14:12:56 +0000
(16:12 +0200)
src/fsck.c
patch
|
blob
|
history
diff --git
a/src/fsck.c
b/src/fsck.c
index fe56be74ce8f8633aff03202eea7b95e949dc0f6..96dea660a9be5871c94ceff09b625f3130d7f6bd 100644
(file)
--- a/
src/fsck.c
+++ b/
src/fsck.c
@@
-31,6
+31,7
@@
#include "util.h"
#include "dbus-common.h"
#include "special.h"
#include "util.h"
#include "dbus-common.h"
#include "special.h"
+#include "bus-errors.h"
static bool arg_skip = false;
static bool arg_force = false;
static bool arg_skip = false;
static bool arg_force = false;
@@
-74,7
+75,12
@@
static void start_target(const char *target, bool isolate) {
}
if (!(reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error))) {
}
if (!(reply = dbus_connection_send_with_reply_and_block(bus, m, -1, &error))) {
- log_error("Failed to start unit: %s", bus_error_message(&error));
+
+ /* Don't print a waring if we aren't called during
+ * startup */
+ if (!dbus_error_has_name(&error, BUS_ERROR_NO_SUCH_JOB))
+ log_error("Failed to start unit: %s", bus_error_message(&error));
+
goto finish;
}
goto finish;
}