liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit adf62d4483cc37b0d8ea488a6a91c5edf54b7f11
parent 68eb1360f6f08a60b76e3f1062348e67788e5ebc
Author: Daniel Barlow <dan@telent.net>
Date:   Wed, 17 Apr 2024 18:49:30 +0100

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

Diffstat:
Mexamples/arhcive.nix | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/examples/arhcive.nix b/examples/arhcive.nix @@ -88,6 +88,16 @@ in rec { 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 = let secrets_file = oneshot rec {