Commit bd184be2 authored by Paul Meyer's avatar Paul Meyer
Browse files

qemu-vm: create erofs with hard-dereference flag



This will ensure reproducibility between different nixos systems, where
one system has store optimization enabled (which will hardling similar
files in the nix store) and the other doesn't. Without the flag, the
same image, built on the two different systems, will have a different
number of inodes. The flag will dereference hardlinks and copy them
into the image as different inodes.

Signed-off-by: default avatarPaul Meyer <katexochen0@gmail.com>
parent 9ee8a0dd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -194,6 +194,7 @@ let
          -L ${nixStoreFilesystemLabel} \
          -U eb176051-bd15-49b7-9e6b-462e0b467019 \
          -T 0 \
          --hard-dereference \
          --tar=f \
          "$TMPDIR"/store.img