scan for disk
This commit is contained in:
parent
85b6285a50
commit
58090d47ea
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,10 @@ in
|
||||||
openiscsi
|
openiscsi
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.udev.rules = ''
|
||||||
|
ACTION=="add", SUBSYSTEM=="scsi_host", KERNEL=="host*", RUN+="${pkgs.bash}/bin/sh -c 'echo - - - > /sys/class/scsi_host/%k/scan'"
|
||||||
|
'';
|
||||||
|
|
||||||
systemd.services.k3s = {
|
systemd.services.k3s = {
|
||||||
restartTriggers = [
|
restartTriggers = [
|
||||||
(builtins.attrNames config.services.k3s.manifests)
|
(builtins.attrNames config.services.k3s.manifests)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue