From a007e6f49690e06d9ce2cd68afb4caf6fe7e6ca3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 14 Aug 2024 14:07:38 +0200 Subject: [PATCH] fsync before nixos-install to figure out why disko-install is not working on one machine --- disko-install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/disko-install b/disko-install index 0646542..a41920f 100755 --- a/disko-install +++ b/disko-install @@ -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" }