mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
27 lines
888 B
Bash
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
|
|
}
|