archboot/usr/lib/initcpio/install/archboot_base

73 lines
3.5 KiB
Text
Raw Normal View History

#!/usr/bin/env bash
2007-02-22 23:46:50 +01:00
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
2007-02-22 23:46:50 +01:00
{
2022-01-31 10:49:49 +01:00
apps="getent head id cksum tail tee test tr uptime w who which whoami xargs \
swapon uniq cut seq snarf fdisk sfdisk cfdisk parted free less \
2022-01-31 10:49:49 +01:00
chgrp chown date df dialog dmesg egrep fgrep stty sync tar bsdcpio hdparm \
2022-02-03 07:28:14 +01:00
mktemp chroot dirname expr bzip2 hwclock su cpio gzip top sdparm tput \
2022-01-31 10:49:49 +01:00
ifconfig ln losetup mkfifo mknod readlink lzmadec lzop xz last wall mesg utmpdump \
xzdec switch_root pivot_root chcpu ctrlaltdel raw gdisk sgdisk cgdisk fixparts findmnt \
2022-02-03 07:28:14 +01:00
lsblk swaplabel cal chrt col colcrt colrm column fallocate flock getopt \
2022-01-31 10:49:49 +01:00
ionice ipcmk ipcrm ipcs isosize swapoff look lscpu mcookie namei prlimit rename \
renice rev script scriptreplay setarch setsid setterm taskset ul unshare \
uuidgen whereis write addpart delpart ldattach partx readprofile rtcwake uuidd \
sysctl pgrep pkill pmap pwdx slabtop tload vmstat watch file eject keyctl request-key \
2022-01-31 10:49:49 +01:00
zsh hostname tac sulogin resizepart lslocks wdctl zless zgrep fold od ldd \
shred blockdev blkdiscard newgrp nsenter runuser vipw ldconfig diff depmod \
linux32 linux64 lsmod lzcat lzcmp lzdiff lzegrep lzfgrep lzgrep lzegrep lzfgrep \
lzgrep lzless lzmore lzma modinfo nc reset rmmod unlzma unxz xzcat lastb stat \
blkzone chmem choom fincore hardlink irqtop lsipc lsirq lslogins lsmem lsns mkfs \
scriptlive setpriv uclampset uname26 uuidparse zramctl [ b2sum base32 base64 \
basenc chcon comm csplit dircolors expand factor fmt hostid install join link \
logname md5sum nice nl nohup nproc numfmt paste pathchk pinky pr printenv ptx realpath \
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 \
lzmainfo xzcmp xzegrep xzfgrep gzexe uncompress zcmp zdiff zegrep zfgrep zforce zmore znew \
2022-01-28 09:16:19 +01:00
bunzip2 bzcat 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="$apps i386 x86_64"
fi
2012-05-27 22:28:05 +02:00
for i in $apps; do
add_binary "$i"
done
### add zsh
add_full_dir "/etc/zsh"
add_full_dir "/usr/share/zsh"
add_full_dir "/usr/lib/zsh"
2012-10-08 10:38:58 +02:00
### add en_US.utf8 locale
add_file "/usr/lib/locale/locale-archive"
2022-01-31 15:03:27 +01:00
### adding passwd file for correct shell
2022-01-31 15:11:12 +01:00
add_file "/usr/share/archboot/base/etc/passwd" "/etc/passwd"
2022-01-31 10:49:49 +01:00
### fix file
add_file "/usr/share/file/misc/magic.mgc"
2012-09-10 19:01:45 +02:00
### add shadow
2022-01-31 10:49:49 +01:00
apps="groups chage chfn chsh expiry faillog gpasswd lastlog passwd \
2013-05-22 09:36:34 +02:00
chgpasswd chpasswd groupadd groupdel groupmems groupmod grpck grpconv grpunconv \
newusers pwck pwconv pwunconv useradd userdel usermod sg vigr"
2012-09-10 19:01:45 +02:00
for i in $apps; do
add_binary "$i"
done
2009-05-24 15:47:17 +02:00
### fix licenses
2012-04-20 16:20:18 +02:00
add_file "/usr/share/licenses/file/COPYING"
2009-05-08 08:05:45 +02:00
add_file "/usr/share/licenses/bzip2/LICENSE"
add_file "/usr/share/licenses/hdparm/LICENSE.TXT"
add_file "/usr/share/licenses/ncurses/COPYING"
2009-05-08 08:05:45 +02:00
add_file "/usr/share/licenses/pcre/LICENSE"
2013-01-21 16:17:52 +01:00
add_file "/usr/share/licenses/sdparm/LICENSE"
2010-02-07 23:43:45 +01:00
add_file "/usr/share/licenses/zlib/LICENSE"
2007-02-22 23:46:50 +01:00
}
help ()
{
cat <<HELPEOF
2022-01-31 10:49:49 +01:00
This hook sets up base for a normal archboot image.
2007-02-22 23:46:50 +01:00
HELPEOF
}