diff options
author | Thomas Bächler <thomas@archlinux.org> | 2013-12-21 11:22:37 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-12-22 04:52:56 +0100 |
commit | e2f123b97b9af34f39cb18ce0c1c5ef6cb89117e (patch) | |
tree | 0d03edd40d493201cf535adb6e76661adf20e725 /src/fstab-generator/fstab-generator.c | |
parent | libsystemd-login: add sd_session_get_remote_{host, user} (diff) | |
download | systemd-e2f123b97b9af34f39cb18ce0c1c5ef6cb89117e.tar.xz systemd-e2f123b97b9af34f39cb18ce0c1c5ef6cb89117e.zip |
fstab-generator: Do not try to fsck non-devices
This fixes a regression introduced in 64e70e4 where the mount fails
when fstab is misconfigured with fs_passno > 0 on a virtual file
system like nfs, and the type is specified as "auto".
Diffstat (limited to '')
-rw-r--r-- | src/fstab-generator/fstab-generator.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fstab-generator/fstab-generator.c b/src/fstab-generator/fstab-generator.c index 1227f0895d..5480e54b4e 100644 --- a/src/fstab-generator/fstab-generator.c +++ b/src/fstab-generator/fstab-generator.c @@ -152,6 +152,11 @@ static int add_fsck(FILE *f, const char *what, const char *where, const char *ty if (passno == 0) return 0; + if (!is_device_path(what)) { + log_warning("Checking was requested for \"%s\", but it is not a device.", what); + return 0; + } + if (type && !streq(type, "auto")) { int r; const char *checker; |