From 1056ea09b20f49d87de0185d49abab5ad5930c47 Mon Sep 17 00:00:00 2001 From: Chris Riches Date: Mon, 4 Sep 2023 16:44:31 +0000 Subject: [PATCH] runtime-cleanup.tmpl: fix typo 'gschadow' Commit fa2158c7a9 ("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 --- share/templates.d/99-generic/runtime-cleanup.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/templates.d/99-generic/runtime-cleanup.tmpl b/share/templates.d/99-generic/runtime-cleanup.tmpl index 7afb9d902..b32e28f9c 100644 --- a/share/templates.d/99-generic/runtime-cleanup.tmpl +++ b/share/templates.d/99-generic/runtime-cleanup.tmpl @@ -383,4 +383,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"