archboot/usr/lib/initcpio/install/archboot_installer
2022-03-14 21:32:33 +01:00

27 lines
888 B
Bash

#!/usr/bin/env bash
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
map add_binary genfstab arch-chroot pacstrap \
archboot-$(uname -m)-release.sh \
archboot-restore-usbstick.sh isoinfo archboot-copy-mountpoint.sh \
archboot-rsync-backup.sh archboot-binary-check.sh
add_file "/usr/lib/archboot/release_functions"
add_file "/usr/bin/archboot-setup.sh" "/usr/bin/setup"
add_file "/usr/bin/archboot-quickinst.sh" "/usr/bin/quickinst"
# 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
}
help ()
{
cat<<HELPEOF
This hook includes the archboot installer,archinstaller and arch-install-scripts
on an archboot image.
HELPEOF
}