2022-02-05 12:09:39 +01:00
|
|
|
#!/usr/bin/env bash
|
2023-01-27 08:08:28 +01:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
2022-02-05 12:09:39 +01:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
|
|
|
build ()
|
|
|
|
{
|
2023-01-21 09:18:25 +01:00
|
|
|
apps="head id cksum tail test uptime w who whoami xargs \
|
2022-09-11 13:57:47 +02:00
|
|
|
swapon uniq seq fdisk sfdisk cfdisk parted free less \
|
2023-07-31 15:05:05 +02:00
|
|
|
chgrp dmesg egrep fgrep stty hdparm sync bsdcpio\
|
2022-12-02 16:54:23 +01:00
|
|
|
dirname chroot expr bunzip2 bzcat bzip2 su sdparm tput \
|
2022-12-12 19:22:44 +01:00
|
|
|
losetup mkfifo mknod lzmadec lzop lzma lzcat unlzma unxz xzcat \
|
2022-02-05 16:21:28 +01:00
|
|
|
lastb last wall mesg utmpdump xzdec switch_root pivot_root chcpu ctrlaltdel \
|
2022-04-26 16:32:57 +02:00
|
|
|
gdisk sgdisk cgdisk fixparts findmnt lsblk swaplabel cal chrt col colcrt \
|
2023-02-13 16:27:22 +01:00
|
|
|
colrm column fallocate flock getopt ionice ipcmk ipcrm ipcs swapoff \
|
2022-09-06 22:42:24 +02:00
|
|
|
look lsfd lscpu mcookie namei prlimit rename renice rev script scriptreplay uname26 \
|
2022-02-05 16:07:30 +01:00
|
|
|
linux32 linux64 setarch setsid setterm taskset ul unshare uuidgen whereis write \
|
2023-06-28 09:39:41 +02:00
|
|
|
addpart delpart ldattach partx readprofile rtcwake uuidd sysctl pidwait pkill pmap \
|
2023-01-26 08:42:40 +01:00
|
|
|
pwdx slabtop tload vmstat watch eject keyctl request-key tac \
|
2023-02-12 21:46:10 +01:00
|
|
|
sulogin resizepart lslocks wdctl zless zgrep fold hexdump shred blockdev blkdiscard \
|
2022-05-03 18:02:28 +02:00
|
|
|
newgrp nsenter runuser vigr vipw diff lsmod lzcmp lzdiff lzegrep \
|
2022-09-12 11:05:46 +02:00
|
|
|
lzgrep lzfgrep xzegrep xzfgrep xzgrep lzless lzmore reset blkzone \
|
2022-02-05 16:21:28 +01:00
|
|
|
chmem choom fincore hardlink irqtop lsipc lsirq lslogins lsmem lsns mkfs scriptlive \
|
|
|
|
setpriv uclampset uuidparse zramctl [ b2sum base32 base64 basenc chcon comm csplit \
|
2022-02-05 16:07:30 +01:00
|
|
|
dircolors expand factor fmt hostid join link logname md5sum nice nl nohup \
|
|
|
|
nproc numfmt paste pathchk pinky pr printenv ptx runcon sha1sum sha224sum \
|
|
|
|
sha256sum sha384sum sha512sum shuf split stdbuf sum timeout truncate tsort \
|
2023-06-28 07:58:10 +02:00
|
|
|
unexpand unlink users vdir fuser prtstat pslog pstree newgidmap newuidmap \
|
2022-02-05 16:21:28 +01:00
|
|
|
lzmainfo xzcmp gzexe uncompress zcmp zdiff zegrep zfgrep zforce zmore znew \
|
2022-02-05 16:07:30 +01:00
|
|
|
bzdiff bzgrep bzip2recover bzmore chacl getfacl setfacl attr getfattr \
|
2023-02-15 21:25:41 +01:00
|
|
|
setfattr pzstd unzstd zstdcat zstdgrep zstdless zstdmt lz4 lz4c lz4cat unlz4 \
|
|
|
|
gunzip zcat wipe file"
|
2022-02-05 12:09:39 +01:00
|
|
|
if [[ "$(uname -m)" == "x86_64" ]]; then
|
2022-09-13 17:20:46 +02:00
|
|
|
apps="i386 x86_64 peekfd $apps"
|
|
|
|
fi
|
|
|
|
if [[ "$(uname -m)" == "aarch64" ]]; then
|
|
|
|
apps="peekfd $apps"
|
2022-02-05 12:09:39 +01:00
|
|
|
fi
|
|
|
|
for i in $apps; do
|
|
|
|
rm /usr/bin/"$i"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat <<HELPEOF
|
2022-03-16 10:00:53 +01:00
|
|
|
This hook cleans up binaries of archboot_base,
|
|
|
|
for a update installer routine.
|
2022-02-05 16:59:44 +01:00
|
|
|
DO NOT USE ON REGULAR SYSTEM!.
|
2022-02-05 12:09:39 +01:00
|
|
|
HELPEOF
|
|
|
|
}
|
2023-01-27 08:08:28 +01:00
|
|
|
# vim: set ft=sh ts=4 sw=4 et:
|