File tree Expand file tree Collapse file tree 6 files changed +20
-0
lines changed Expand file tree Collapse file tree 6 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 32
32
install :
33
33
- |
34
34
make install DESTDIR=/rootfs
35
+ - |
36
+ # remove all shell scripts
37
+ find /rootfs/usr/bin -type f -perm /111 -exec grep -slIE '^#!' {} + | tee /dev/stderr | xargs rm
35
38
- |
36
39
# fix up symlinks which point to legacy version to point to nft version
37
40
for f in /rootfs/usr/bin/*; do
Original file line number Diff line number Diff line change 38
38
make install DESTDIR=/rootfs
39
39
40
40
rm -rf /rootfs/share
41
+ - |
42
+ # remove all binaries
43
+ rm -r /rootfs/usr/bin
41
44
test :
42
45
- |
43
46
fhs-validator /rootfs
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ dependencies:
6
6
- image : " {{ .TOOLS_PREFIX }}tools-libcap:{{ .TOOLS_REV }}"
7
7
to : /rootfs
8
8
steps :
9
+ - install :
10
+ - |
11
+ # remove all binaries
12
+ rm -r /rootfs/usr/bin
9
13
- test :
10
14
- |
11
15
fhs-validator /rootfs
Original file line number Diff line number Diff line change 56
56
rm -r /rootfs/usr/share
57
57
# LVM activation is handled by Talos itself
58
58
rm -f /rootfs/usr/lib/udev/rules.d/69-dm-lvm.rules
59
+ - |
60
+ # remove all shell scripts
61
+ find /rootfs/usr/bin -type f -perm /111 -exec grep -slIE '^#!' {} + | tee /dev/stderr | xargs rm
59
62
test :
60
63
- |
61
64
fhs-validator /rootfs
Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ dependencies:
6
6
- image : " {{ .TOOLS_PREFIX }}tools-openssl:{{ .TOOLS_REV }}"
7
7
to : /rootfs
8
8
steps :
9
+ - install :
10
+ - |
11
+ # remove all binaries
12
+ rm -r /rootfs/usr/bin
9
13
- test :
10
14
- |
11
15
fhs-validator /rootfs
Original file line number Diff line number Diff line change 33
33
make install DESTDIR=/rootfs
34
34
rm -rf /rootfs/usr/share/man
35
35
rm -rf /rootfs/usr/share/doc
36
+ - |
37
+ # remove all shell scripts
38
+ find /rootfs/usr/bin -type f -perm /111 -exec grep -slIE '^#!' {} + | tee /dev/stderr | xargs rm
36
39
test :
37
40
- |
38
41
fhs-validator /rootfs
You can’t perform that action at this time.
0 commit comments