From 8501384436b410cb9f5929ef6873c59fac6254be Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 19 Jun 2014 16:55:20 +0200 Subject: stop complaining about unknown kernel cmdline options Also stop warning about unknown kernel cmdline options in the various tools, not just in PID 1 --- src/quotacheck/quotacheck.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/quotacheck/quotacheck.c') 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."); -- cgit v1.2.3-54-g00ecf