archboot/usr/lib/initcpio/install/archboot_installer_common

24 lines
774 B
Text
Raw Normal View History

#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
# Created by Tobias Powalowski <tpowa@archlinux.org>
build ()
{
2022-03-21 22:46:59 +01:00
map add_file "/etc/archboot/defaults" "/usr/lib/archboot/common.sh" \
2022-04-25 15:11:54 +02:00
"/usr/lib/archboot/container.sh" "/usr/bin/archboot-$(uname -m)-create-container.sh" \
2023-09-03 22:01:29 +02:00
"/usr/lib/archboot/login.sh" "/usr/lib/archboot/cpio.sh" "/usr/bin/archboot-cpio.sh"
add_full_dir "/usr/lib/archboot/update"
add_file "/usr/bin/archboot-update.sh" "/usr/bin/update"
2022-05-30 21:50:44 +02:00
add_file "/usr/share/archboot/gpg/tpowa.gpg"
# use /etc/profile to launch login.sh
2023-09-04 09:47:58 +02:00
echo ". /usr/lib/archboot/login.sh" >> "${BUILDROOT}/root/.bashrc"
}
help ()
{
cat<<HELPEOF
This hook adds basic installer files on an archboot image.
HELPEOF
}
# vim: set ft=sh ts=4 sw=4 et: