]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fstab-generator: update cache in fstab_enabled_full() based on the parsed result...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 8 Aug 2023 17:40:21 +0000 (02:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 9 Aug 2023 08:57:43 +0000 (17:57 +0900)
Currently, fstab-generator does not use fstab file parsers in
fstab-util.c. So, this is not necessary. Just for a possible
optimization in the case the parsers used in the future.

src/fstab-generator/fstab-generator.c

index c88f5d4b47d1ff090543286119fa7cfa2b74c081..0a30f8c9c902fb708c7c8a38aa7d2106177f06ba 100644 (file)
@@ -1367,7 +1367,7 @@ static int parse_proc_cmdline_item(const char *key, const char *value, void *dat
                 if (r < 0)
                         log_warning("Failed to parse fstab switch %s. Ignoring.", value);
                 else
-                        arg_fstab_enabled = r;
+                        arg_fstab_enabled = fstab_set_enabled(r);
 
         } else if (streq(key, "root")) {