early_patch: document ownership for files bind mounted into /home/amnesia
[tails.git] / bin / clean-squashfs-sort-file
blob86abc3308cd40a119404243facfaa29c0534de6c
1 #!/bin/bash
3 set -eu
4 set -x
6 perl -ni \
7 -E 'chomp;
8 last if m{\Ausr/local/lib/kill-boot-profile\s}xms;
9 say unless m{(?:
10 [.]pyc\s+\d+\z
11 | \Aboot-profile[.]pid\s
12 | \Alib/firmware/
13 | \Alib/live/mount/medium/live/(?:filesystem[.]squashfs|initrd[.]img)\s
14 | \Alib/live/mount/overlay/rw/etc/fstab\s
15 | \Alib/live/mount/overlay/rw/etc/console-setup/cached_\S+[.](?:gz|sh)\s
16 | \Alib/live/mount/overlay/rw/etc/machine-id\s
17 | \Alib/live/mount/overlay/rw/etc/network/interfaces\s
18 | \Alib/live/mount/overlay/rw/var/log/wtmp\s
19 | \A(?:lib/live/mount/overlay/rw/)?etc/apparmor[.]d/cache/[.]features\s
20 | \A(?:lib/live/mount/overlay/rw/)?etc/(?:group|gshadow|passwd|shadow)-\s
21 | \A(?:lib/live/mount/overlay/rw/)?etc/resolv-over-clearnet[.]conf\s
22 | \A(?:lib/live/mount/overlay/rw/)?etc/skel/[.]config/autostart/end-profile[.]desktop\s
23 | \Alib/modules/.*/kernel/drivers/(?:cpufreq|net|thermal)/
24 | \Alib/modules/.*/kernel/net/
25 | \Ausr/share/pulseaudio/alsa-mixer/
26 | \Arun/
27 | \Avar/lib/AccountsService/users/Debian-gdm\s
28 | \Avar/lib/gdm3/[#]\d+\s
29 | \Avar/log/live/config[.]pipe\s
30 )}xms' \
31 "$1"