We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f1891c commit 3282d7eCopy full SHA for 3282d7e
base/debloat.sh
@@ -1,6 +1,11 @@
1
#!/bin/bash
2
set -euo pipefail
3
4
+# Ensure deterministic ordering of uid and gids before debloating
5
+# See Debian issue #963788
6
+mkosi-chroot pwck --sort >/dev/null
7
+mkosi-chroot grpck --sort >/dev/null
8
+
9
# Remove all logs and cache, but keep directory structure intact
10
find "$BUILDROOT/var/log" -type f -delete
11
find "$BUILDROOT/var/cache" -type f -delete
@@ -34,6 +39,7 @@ debloat_paths=(
34
39
"/usr/lib/systemd/network"
35
40
"/usr/lib/pcrlock.d"
36
41
"/usr/lib/tmpfiles.d"
42
+ "/var/lib/ucf"
37
43
"/etc/systemd/network"
38
44
"/etc/credstore"
45
"/nix"
0 commit comments