2013-07-22 17:57:18 +02:00
|
|
|
#!/usr/bin/env bash
|
2008-10-20 22:39:25 +02:00
|
|
|
# Created by Tobias Powalowski <tpowa@archlinux.org>
|
|
|
|
|
2011-07-06 15:55:39 +02:00
|
|
|
build ()
|
2008-10-20 22:39:25 +02:00
|
|
|
{
|
2022-01-31 11:37:19 +01:00
|
|
|
apps="genfstab arch-chroot pacstrap \
|
2022-01-31 10:53:46 +01:00
|
|
|
archboot-$(uname -m)-release.sh archboot-mktorrent.sh \
|
|
|
|
archboot-restore-usbstick.sh isoinfo mktorrent archboot-copy-mountpoint.sh \
|
|
|
|
archboot-rsync-backup.sh archboot-binary-check.sh"
|
|
|
|
for i in $apps; do
|
|
|
|
add_binary "$i"
|
|
|
|
done
|
2022-02-08 17:01:21 +01:00
|
|
|
add_file "/usr/lib/archboot/release_functions"
|
2021-09-21 11:03:45 +02:00
|
|
|
add_file "/usr/bin/archboot-setup.sh" "/usr/bin/setup"
|
|
|
|
add_file "/usr/bin/archboot-quickinst.sh" "/usr/bin/quickinst"
|
2021-10-04 19:52:58 +02:00
|
|
|
# only include cachedir on booted archboot or container
|
|
|
|
if [[ -e "/etc/hostname" ]]; then
|
|
|
|
[[ "$(cat /etc/hostname)" == "archboot" ]] && add_full_dir "/var/cache/pacman/pkg"
|
|
|
|
else
|
|
|
|
add_full_dir "/var/cache/pacman/pkg"
|
|
|
|
fi
|
2008-10-20 22:39:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
help ()
|
|
|
|
{
|
|
|
|
cat<<HELPEOF
|
2022-02-04 08:21:04 +01:00
|
|
|
This hook includes the archboot installer,archinstaller and arch-install-scripts
|
2021-10-04 11:13:50 +02:00
|
|
|
on an archboot image.
|
2008-10-20 22:39:25 +02:00
|
|
|
HELPEOF
|
|
|
|
}
|