check for db.sqlite rather than /nix/store

since we initialize the database last, it's safe to use the database as
a sentinel path
This commit is contained in:
Jörg Thalheim committed 2024-12-05 13:05:22 +01:00
1 parent 98894c8598
commit 22cd4b7e49
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ let
# We copy files with cp because `nix copy` seems to have a large memory leak
mkdir -p ${systemToInstall.config.disko.rootMountPoint}/nix/store
xargs cp --recursive --target ${systemToInstall.config.disko.rootMountPoint}/nix/store < ${closureInfo}/store-paths
time xargs cp --recursive --target ${systemToInstall.config.disko.rootMountPoint}/nix/store < ${closureInfo}/store-paths
${systemToInstall.config.system.build.nixos-install}/bin/nixos-install --root ${systemToInstall.config.disko.rootMountPoint} --system ${systemToInstall.config.system.build.toplevel} --keep-going --no-channel-copy -v --no-root-password --option binary-caches ""
umount -Rv ${systemToInstall.config.disko.rootMountPoint}