3
0
Fork 0
forked from mirrors/nixpkgs

Don't set the passno field for tmpfs and other FSs that have no device

If passno is set, then systemd will instantiate a systemd-fsck unit,
which in turn will instantiate a <device>.device unit
(e.g. "none.device").  Since no such device exists, mounting will
fail.  So don't set passno.
This commit is contained in:
Eelco Dolstra 2012-09-11 10:55:56 -04:00
parent e0e0e57c26
commit b53842df3e

View file

@ -15,7 +15,7 @@ let
+ " " + fs.fsType
+ " " + fs.options
+ " 0"
+ " " + (if fs.fsType == "none" || fs.fsType == "btrfs" || fs.noCheck then "0" else
+ " " + (if fs.fsType == "none" || fs.device == "none" || fs.fsType == "btrfs" || fs.fsType == "tmpfs" || fs.noCheck then "0" else
if fs.mountPoint == "/" then "1" else "2")
+ "\n"
)}