summary refs log tree commit diff
path: root/pkgs/build-support/docker/store-path-to-layer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/docker/store-path-to-layer.sh')
-rwxr-xr-xpkgs/build-support/docker/store-path-to-layer.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/build-support/docker/store-path-to-layer.sh b/pkgs/build-support/docker/store-path-to-layer.sh
index c7850154c7e..c808abab7a8 100755
--- a/pkgs/build-support/docker/store-path-to-layer.sh
+++ b/pkgs/build-support/docker/store-path-to-layer.sh
@@ -13,8 +13,8 @@ echo "Creating layer #$layerNumber for $storePath"
 
 mkdir -p "$layerPath"
 
-# make sure /nix and /nix/store appear first in the archive.
-# we create the directories here and use them because
+# Make sure /nix and /nix/store appear first in the archive.
+# We create the directories here and use them because
 # when there are other things being added to the
 # nix store, tar could fail, saying,
 # "tar: /nix/store: file changed as we read it"
@@ -25,16 +25,16 @@ tar -cf "$layerPath/layer.tar"  \
     --transform='s,nix,/nix,' \
     nix
 
-# we change into the /nix/store in order to avoid a similar
+# We change into the /nix/store in order to avoid a similar
 # "file changed as we read it" error as above. Namely,
 # if we use the absolute path of /nix/store/123-pkg
-# and something new it added to the nix store while tar
+# and something new is added to the nix store while tar
 # is running, it will detect a change to /nix/store and
 # fail. Instead, if we cd into the nix store and copy
 # the relative nix store path, tar will ignore changes
 # to /nix/store. In order to create the correct structure
 # in the tar file, we transform the relative nix store
-# path to the absolute store path
+# path to the absolute store path.
 n=$(basename "$storePath")
 tar -C /nix/store -rpf "$layerPath/layer.tar" \
     --hard-dereference --sort=name \