diff --git a/quickly.nix b/quickly.nix index 945ea37..2182baa 100644 --- a/quickly.nix +++ b/quickly.nix @@ -48,14 +48,18 @@ in for f in $(rev /nix-store-isos); do dest=$(basename "$f" | rev) + echo "$dest" mkdir "/mnt-root/nix/.squash/$dest" mount -t squashfs -o loop "$f" "/mnt-root/nix/.squash/$dest" ( cd /mnt-root/nix/store/ - ln -s "../.squash/$dest/$dest" "./$dest" + cp -ar "../.squash/$dest/$dest" "./$dest" ) + umount "/mnt-root/nix/.squash/$dest" + rm "$f" set +x done + ls -la /mnt-root/nix/store | grep system-nixos ls -la /mnt-root/nix/store/*-nixos-system*/ ls -la /mnt-root/nix/store/*-nixos-system*/* diff --git a/test.nix b/test.nix index fb06253..4c6ffd5 100644 --- a/test.nix +++ b/test.nix @@ -22,7 +22,7 @@ let machineConfig = pythonDict ( { - qemuFlags = "-boot order=n -m 2000"; + qemuFlags = "-boot order=n -m 4000"; netBackendArgs = "tftp=${config.system.build.ipxeBootDir},bootfile=netboot.ipxe"; } // extraConfig );