chiark / gitweb /
systemctl: generalize action table to be usable in more action<->verb mappings
[elogind.git] / src / fstab-generator / fstab-generator.c
index f3ecc24be62e864a67c15d7ea0fa112a7867c95a..bfeddedf6228138ef99b98d964dfdecf210cc7ca 100644 (file)
@@ -33,6 +33,7 @@
 #include "special.h"
 #include "mkdir.h"
 #include "virt.h"
+#include "fileio.h"
 
 static const char *arg_dest = "/tmp";
 static bool arg_enabled = true;
@@ -451,8 +452,8 @@ static int parse_new_root_from_proc_cmdline(void) {
         if (!opts || !type)
                 return log_oom();
 
-       /* root= and roofstype= may occur more than once, the last instance should take precedence.
-        * In the case of multiple rootflags= the arguments should be concatenated */
+        /* root= and roofstype= may occur more than once, the last instance should take precedence.
+         * In the case of multiple rootflags= the arguments should be concatenated */
         FOREACH_WORD_QUOTED(w, l, line, state) {
                 char *word, *tmp_word;
 
@@ -494,8 +495,8 @@ static int parse_new_root_from_proc_cmdline(void) {
 
         if (what) {
 
-                log_debug("Found entry what=%s where=/new_root type=%s", what, type);
-                r = add_mount(what, "/new_root", type, opts, 0, wait, false, false,
+                log_debug("Found entry what=%s where=/sysroot type=%s", what, type);
+                r = add_mount(what, "/sysroot", type, opts, 0, wait, false, false,
                               false, false, false, "/proc/cmdline");
 
                 if (r < 0)