fsync before nixos-install

to figure out why disko-install is not working on one machine
This commit is contained in:
Jörg Thalheim 2024-08-14 14:07:38 +02:00
parent 0d510fe40b
commit a007e6f496

View file

@ -240,6 +240,10 @@ main() {
NIX_STATE_DIR=${mountPoint}/nix/var/nix nix-store --load-db < "${closure_info}/registration"
fi
echo "Syncing filesystems" >&2
fsync "${mountPoint}"
echo "Install NixOS" >&2
nixos-install --no-channel-copy --no-root-password --system "$nixos_system" --root "$mountPoint"
}