Add /nix/store to each layer.tar
To be totally consistent with the way Docker builds images we need to include the /nix/store in the layer tarballs first.
This commit is contained in:
parent
7205c1ee3e
commit
096e3cbdec
|
@ -9,6 +9,7 @@ layerPath="./layers/$layerNumber"
|
|||
echo "Creating layer #$layerNumber for $@"
|
||||
|
||||
mkdir -p "$layerPath"
|
||||
tar --no-recursion -rf "$layerPath/layer.tar" /nix /nix/store
|
||||
tar -rpf "$layerPath/layer.tar" --hard-dereference --sort=name \
|
||||
--mtime="@$SOURCE_DATE_EPOCH" \
|
||||
--owner=0 --group=0 "$@"
|
||||
|
|
Loading…
Reference in New Issue