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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user