mirror of
https://github.com/nix-community/disko
synced 2024-11-10 06:14:14 +00:00
fsync before nixos-install
to figure out why disko-install is not working on one machine
This commit is contained in:
parent
0d510fe40b
commit
a007e6f496
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue