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
1 changed files with 2 additions and 2 deletions
|
@ -60,7 +60,7 @@ in
|
||||||
'';
|
'';
|
||||||
postDeviceCommands =
|
postDeviceCommands =
|
||||||
''
|
''
|
||||||
zpool import -f -a -d /dev
|
zpool import -f -a
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ in
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = true;
|
RemainAfterExit = true;
|
||||||
restartIfChanged = false;
|
restartIfChanged = false;
|
||||||
ExecStart = "${kernel.zfs}/sbin/zpool import -f -a -d /dev";
|
ExecStart = "${kernel.zfs}/sbin/zpool import -f -a";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue