archboot/usr/lib/initcpio/install/archboot_base_cleanup

46 lines
2.4 KiB
Text
Raw Normal View History

#!/usr/bin/env bash
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
apps="getent head id cksum tail test tr uptime w who which whoami xargs \
swapon uniq cut seq snarf fdisk sfdisk cfdisk parted free less \
chgrp df dialog dmesg egrep fgrep stty sync tar bsdcpio hdparm \
chroot dirname expr bunzip2 bzcat bzip2 su cpio gzip top sdparm tput \
ifconfig 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 \
raw gdisk sgdisk cgdisk fixparts findmnt lsblk swaplabel cal chrt col colcrt \
colrm column fallocate flock getopt ionice ipcmk ipcrm ipcs isosize swapoff \
look lscpu mcookie namei prlimit rename renice rev script scriptreplay uname26 \
linux32 linux64 setarch setsid setterm taskset ul unshare uuidgen whereis write \
addpart delpart ldattach partx readprofile rtcwake uuidd sysctl pkill pmap \
pwdx slabtop tload vmstat watch file eject keyctl request-key zsh hostname tac \
2022-02-05 17:50:18 +01:00
sulogin resizepart lslocks wdctl zless zgrep fold od shred blockdev blkdiscard \
2022-02-05 16:51:46 +01:00
newgrp nsenter runuser vigr vipw ldconfig diff lsmod lzcmp lzdiff lzegrep \
lzgrep lzfgrep xzegrep xzfgrep xzgrep lzless lzmore nc reset rmmod 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 \
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 \
unexpand unlink users vdir pwait fuser peekfd prtstat pslog pstree newgidmap newuidmap \
2022-02-05 16:21:28 +01:00
lzmainfo xzcmp gzexe uncompress zcmp zdiff zegrep zfgrep zforce zmore znew \
bzdiff bzgrep bzip2recover bzmore chacl getfacl setfacl attr getfattr \
setfattr pzstd unzstd zstdcat zstdgrep zstdless zstdmt lz4 lz4c lz4cat unlz4 gunzip zcat"
if [[ "$(uname -m)" == "x86_64" ]]; then
apps="i386 x86_64 $apps"
fi
for i in $apps; do
rm /usr/bin/"$i"
done
}
help ()
{
cat <<HELPEOF
This hook cleans up binaries of archboot_base,
for a update installer routine.
DO NOT USE ON REGULAR SYSTEM!.
HELPEOF
}