summaryrefslogtreecommitdiff
path: root/src/quotacheck/quotacheck.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-19 16:55:20 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-19 16:55:20 +0200
commit8501384436b410cb9f5929ef6873c59fac6254be (patch)
tree6654fd46ffe9489e8a15a51414a1deeaf026b645 /src/quotacheck/quotacheck.c
parent52c611b776c6d17b7aeffb5d9b1b555260b5011b (diff)
stop complaining about unknown kernel cmdline options
Also stop warning about unknown kernel cmdline options in the various tools, not just in PID 1
Diffstat (limited to 'src/quotacheck/quotacheck.c')
-rw-r--r--src/quotacheck/quotacheck.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quotacheck/quotacheck.c b/src/quotacheck/quotacheck.c
index efd6e18308..ed95b48c63 100644
--- a/src/quotacheck/quotacheck.c
+++ b/src/quotacheck/quotacheck.c
@@ -42,10 +42,9 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
else if (streq(value, "skip"))
arg_skip = true;
else
- log_warning("Invalid quotacheck.mode= parameter. Ignoring.");
+ log_warning("Invalid quotacheck.mode= parameter '%s'. Ignoring.", value);
+ }
- } else if (startswith(key, "quotacheck."))
- log_warning("Invalid quotacheck parameter. Ignoring.");
#ifdef HAVE_SYSV_COMPAT
else if (streq(key, "forcequotacheck") && !value) {
log_warning("Please use 'quotacheck.mode=force' rather than 'forcequotacheck' on the kernel command line.");
@@ -57,6 +56,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value) {
}
static void test_files(void) {
+
#ifdef HAVE_SYSV_COMPAT
if (access("/forcequotacheck", F_OK) >= 0) {
log_error("Please pass 'quotacheck.mode=force' on the kernel command line rather than creating /forcequotacheck on the root file system.");