mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
38 lines
No EOL
1.7 KiB
Text
Executable file
38 lines
No EOL
1.7 KiB
Text
Executable file
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
install ()
|
|
{
|
|
MODULES=""
|
|
BINARIES="pacman pacman.static"
|
|
FILES=""
|
|
SCRIPT=""
|
|
|
|
DEPENDS="initscripts cvs wget bash coreutils cryptsetup dialog \
|
|
e2fsprogs findutils gawk grep iputils jfsutils less lvm2 mdadm module-init-tools nano \
|
|
ncurses net-tools gnu-netcat ntfsprogs pcmciautils procps psmisc reiserfsprogs sed snarf \
|
|
syslog-ng sysvinit tar util-linux vim which wireless_tools xfsprogs dnsutils hdparm memtest86+ \
|
|
grub netkit-telnet openssh hwdetect portmap shadow bridge-utils ifenslave cpufrequtils links tcp_wrappers \
|
|
dosfstools udev initscripts filesystem kernel26 glibc kernel-headers xinetd naim links pacman screen kbd pam \
|
|
dhcpcd bzip2 gcc mktemp openssl zlib libelf gpm sysfsutils libgcrypt libgpg-error popt kexec-tools ppp libpcap \
|
|
rp-pppoe lilo grub iptables capi4k-utils ntfs-3g isdn4k-utils pciutils usbutils vpnc openvpn bcm43xx-fwcutter wpa_supplicant gzip rsync libarchive libdownload device-mapper"
|
|
|
|
for i in $DEPENDS; do
|
|
add_file "$(echo /var/lib/pacman/local/$i-[0-9]*-[0-9]*/depends)"
|
|
add_file "$(echo /var/lib/pacman/local/$i-[0-9]*-[0-9]*/files)"
|
|
add_file "$(echo /var/lib/pacman/local/$i-[0-9]*-[0-9]*/desc)"
|
|
done
|
|
add_dir "/var/log"
|
|
add_file "/etc/archboot/etc/pacman/pacman.conf.pacman" "/etc/pacman.conf"
|
|
add_file "/etc/archboot/etc/pacman/current.pacman" "/etc/pacman.d/current"
|
|
add_file "/etc/archboot/etc/pacman/extra.pacman" "/etc/pacman.d/extra"
|
|
add_file "/etc/archboot/etc/pacman/unstable.pacman" "/etc/pacman.d/unstable"
|
|
add_file "/etc/archboot/etc/pacman/release.pacman" "/etc/pacman.d/release"
|
|
add_file "/etc/archboot/etc/pacman/community.pacman" "/etc/pacman.d/community"
|
|
}
|
|
|
|
help ()
|
|
{
|
|
cat<<HELPEOF
|
|
This hook includes the pacman on an arch boot image.
|
|
HELPEOF
|
|
} |