There's no point in "fscking a bind mount". Let's not do it hence.
fprintf(f, "After=%s\n", extra_after);
if (passno != 0) {
- r = generator_write_fsck_deps(f, dest, what, where, fstype);
+ r = generator_write_fsck_deps(f, dest, what, where, fstype, opts);
if (r < 0)
return r;
}
if (post)
fprintf(f, "Before=%s\n", post);
- r = generator_write_fsck_deps(f, arg_dest, what, where, fstype);
+ r = generator_write_fsck_deps(f, arg_dest, what, where, fstype, opts_filtered);
if (r < 0)
return r;
const char *dir,
const char *what,
const char *where,
- const char *fstype) {
+ const char *fstype,
+ const char *options) {
int r;
}
}
+ if (fstab_test_option(options, "bind\0rbind\0")) {
+ log_debug("Skipping file system check for bind mount of '%s'.", what);
+ return 0;
+ }
+
if (!is_device_path(what)) {
log_warning("Checking was requested for \"%s\", but it is not a device.", what);
return 0;
const char *dir,
const char *what,
const char *where,
- const char *type);
+ const char *type,
+ const char *options);
int generator_write_device_timeout(
const char *dir,