Merge pull request #28544 from yuwata/fstab-generator-fsck

fstab-generator: enable fsck for block device mounts specified in sys…
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2023-07-28 08:49:40 +02:00
committed by GitHub
11 changed files with 54 additions and 1 deletions
+4 -1
View File
@@ -888,6 +888,9 @@ static int parse_fstab_one(
if (is_swap)
return add_swap(source, what, options, flags);
if (passno < 0)
passno = is_device_path(what);
assert(where_original); /* 'where' is not necessary for swap entry. */
if (!is_path(where_original)) {
@@ -1302,7 +1305,7 @@ static int add_mounts_from_cmdline(void) {
m->where,
m->fstype,
m->options,
/* passno = */ 0,
/* passno = */ -1,
/* prefix_sysroot = */ !m->for_initrd && in_initrd(),
/* accept_root = */ true,
/* use_swap_enabled = */ false);