summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-10-22 16:12:56 +0200
committerLennart Poettering <lennart@poettering.net>2010-10-22 16:12:56 +0200
commitef1de59b5e1d509cf3c619bd2c4975009aba1dd6 (patch)
treec587bc54c5c2987ea38a3ab61f6972e7c8f5c364 /src
parent288c783a9d9ab6ff1e11332fd3066f7a2a9c4912 (diff)
fsck: suppress error message if we cannot change into single user mode since we are already passt early bootup
Diffstat (limited to 'src')
-rw-r--r--src/fsck.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fsck.c b/src/fsck.c
index fe56be74ce..96dea660a9 100644
--- a/src/fsck.c
+++ b/src/fsck.c
@@ -31,6 +31,7 @@
#include "util.h"
#include "dbus-common.h"
#include "special.h"
+#include "bus-errors.h"
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))) {
- 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;
}