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
|
|
|
{
|
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"
|
2012-07-18 18:49:04 +02:00
|
|
|
add_file "/usr/bin/genfstab"
|
|
|
|
add_file "/usr/bin/arch-chroot"
|
|
|
|
add_file "/usr/bin/pacstrap"
|
2021-09-16 17:23:49 +02:00
|
|
|
add_file "/usr/bin/archboot-update-installer.sh" "/usr/bin/update-installer.sh"
|
2022-01-08 09:51:29 +01:00
|
|
|
add_file "/usr/bin/archboot-$(uname -m)-create-container.sh"
|
|
|
|
add_file "/usr/bin/archboot-$(uname -m)-release.sh"
|
2021-09-22 09:02:56 +02:00
|
|
|
add_file "/usr/bin/archboot-mktorrent.sh"
|
2021-09-23 12:21:08 +02:00
|
|
|
add_file "/usr/bin/archboot-restore-usbstick.sh"
|
2021-09-22 14:35:11 +02:00
|
|
|
add_binary "/usr/bin/isoinfo"
|
|
|
|
add_binary "/usr/bin/mktorrent"
|
2022-01-31 10:49:49 +01:00
|
|
|
### add copy-mountpoint.sh
|
|
|
|
add_file "/usr/bin/archboot-copy-mountpoint.sh"
|
|
|
|
### add rsync-backup.sh
|
|
|
|
add_file "/usr/bin/archboot-rsync-backup.sh"
|
|
|
|
### add binary add_check
|
|
|
|
add_file "/usr/bin/archboot-binary-check.sh"
|
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
|
2012-07-18 18:49:04 +02:00
|
|
|
This hook includes the archboot installer 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
|
|
|
|
}
|