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:
parent
e0e0e57c26
commit
b53842df3e
@ -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"
|
||||
)}
|
||||
|
Loading…
Reference in New Issue
Block a user