fstab-generator: update cache in fstab_enabled_full() based on the parsed result of fstab=

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.
This commit is contained in:
Yu Watanabe
2023-08-09 02:40:21 +09:00
parent 1177373b6a
commit b564224b37

View 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")) {