forked from DGNum/liminix
arhcive: make it work when disk is attached before boot
This is a bit of a kludge (a lot of a kludge) but it will get it running whilt I work on something better
This commit is contained in:
parent
68eb1360f6
commit
adf62d4483
1 changed files with 10 additions and 0 deletions
|
@ -88,6 +88,16 @@ in rec {
|
||||||
fstype = "ext4";
|
fstype = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# until we support retained uevent state, we need to push coldplug
|
||||||
|
# events to mount_external_disk to account for the case that the
|
||||||
|
# disk is already plugged at boot time
|
||||||
|
|
||||||
|
services.fudge_coldplug = oneshot {
|
||||||
|
name = "fudge_coldplug";
|
||||||
|
up = "sleep 5; for i in /sys/class/block/*/uevent; do echo 'change' > $i ;done";
|
||||||
|
dependencies = [ services.mount_external_disk ];
|
||||||
|
};
|
||||||
|
|
||||||
services.rsync =
|
services.rsync =
|
||||||
let
|
let
|
||||||
secrets_file = oneshot rec {
|
secrets_file = oneshot rec {
|
||||||
|
|
Loading…
Reference in a new issue