Skip to content

Commit

Permalink
runtime-cleanup.tmpl: fix typo 'gschadow'
Browse files Browse the repository at this point in the history
Commit fa2158c ("Drop non-determinism from default templates") made
an attempt to ensure /etc/gshadow is reproducible by sorting it.
However, there was a typo causing the sorted version to be saved as
/etc/gschadow, leaving the original intact.

Fix the typo to ensure the file is overwritten.

Signed-off-by: Chris Riches <[email protected]>
  • Loading branch information
cjriches authored and bcl committed Sep 5, 2023
1 parent c59f5fa commit 33f1877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/templates.d/99-generic/runtime-cleanup.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -388,4 +388,4 @@ remove /etc/pki/ca-trust/extracted/java/cacerts

## sort groups
runcmd chroot ${root} /bin/sh -c "LC_ALL=C sort /etc/group > /etc/group- && mv /etc/group- /etc/group"
runcmd chroot ${root} /bin/sh -c "LC_ALL=C sort /etc/gshadow > /etc/gshadow- && mv /etc/gshadow- /etc/gschadow"
runcmd chroot ${root} /bin/sh -c "LC_ALL=C sort /etc/gshadow > /etc/gshadow- && mv /etc/gshadow- /etc/gshadow"

0 comments on commit 33f1877

Please sign in to comment.