mirror of
https://github.com/nix-community/disko.git
synced 2026-12-01 21:43:29 +01:00
fsync before nixos-install
to figure out why disko-install is not working on one machine
This commit is contained in:
1 parent
0d510fe40b
commit
a007e6f496
1 file changed
+4
@@ -240,6 +240,10 @@ main() {
|
|||||||
NIX_STATE_DIR=${mountPoint}/nix/var/nix nix-store --load-db < "${closure_info}/registration"
|
NIX_STATE_DIR=${mountPoint}/nix/var/nix nix-store --load-db < "${closure_info}/registration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "Syncing filesystems" >&2
|
||||||
|
fsync "${mountPoint}"
|
||||||
|
|
||||||
|
echo "Install NixOS" >&2
|
||||||
nixos-install --no-channel-copy --no-root-password --system "$nixos_system" --root "$mountPoint"
|
nixos-install --no-channel-copy --no-root-password --system "$nixos_system" --root "$mountPoint"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user