From baceb78491555095ca35d4e9ce8d5eae1f49a63f Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Sun, 6 Sep 2015 18:34:27 +0100 Subject: [PATCH] Filter "auto" from the command line. LILO adds it automatically for non-interactive boots; we can just ignore it. --- dinit.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dinit.cc b/dinit.cc index d54e8d6..2f28292 100644 --- a/dinit.cc +++ b/dinit.cc @@ -130,7 +130,10 @@ int main(int argc, char **argv) } } else { - services_to_start.push_back(argv[i]); + // LILO puts "auto" on the kernel command line for unattended boots; we'll filter it. + if (! am_system_init || strcmp(argv[i], "auto") != 0) { + services_to_start.push_back(argv[i]); + } } } } -- 2.25.1