Calendar: remove past event
[tails/test.git] / bin / clean-squashfs-sort-file
bloba65be1c7782bce7f856d0d2746651a2428bc3aa3
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)/
24 | \Arun/
25 | \Avar/lib/AccountsService/users/Debian-gdm\s
26 | \Avar/lib/gdm3/[#]\d+\s
27 | \Avar/log/live/config[.]pipe\s
28 )}xms' \
29 "$1"