forked from mirrors/nixpkgs
zfs: Don't look for devices only in /dev
If we don't give out a directory to 'zpool import', it will use libblkid to automatically find all existing ZFS devices.
This commit is contained in:
parent
e0fe5e7c38
commit
02e2431661
|
@ -60,7 +60,7 @@ in
|
|||
'';
|
||||
postDeviceCommands =
|
||||
''
|
||||
zpool import -f -a -d /dev
|
||||
zpool import -f -a
|
||||
'';
|
||||
};
|
||||
|
||||
|
@ -71,7 +71,7 @@ in
|
|||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
restartIfChanged = false;
|
||||
ExecStart = "${kernel.zfs}/sbin/zpool import -f -a -d /dev";
|
||||
ExecStart = "${kernel.zfs}/sbin/zpool import -f -a";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue