add pacsetup to initrd

This commit is contained in:
Tobias Powalowski 2023-07-17 12:48:18 +02:00
parent e944e9a6fc
commit 28dd9aabef
2 changed files with 6 additions and 2 deletions

View file

@ -180,8 +180,8 @@ if [[ -e /usr/bin/setup ]]; then
_local_mode
# wait on user interaction!
_enter_shell
# basic environment setup:
# glibc locale, vconsole, network, clock
# Basic Setup:
# glibc locale, vconsole, network, clock, pacman
if ! [[ -e /tmp/.localize ]]; then
localize
source /etc/locale.conf
@ -195,6 +195,9 @@ if [[ -e /usr/bin/setup ]]; then
if ! [[ -e /tmp/.clock ]]; then
clock
fi
if [[ ! -e /tmp/.pacsetup && ! -e "${_CACHEDIR}/archboot.db" ]]; then
pacsetup
fi
# switch for setup or launcher
if [[ -e "${_CACHEDIR}/archboot.db" ]]; then
if [[ ! -e /tmp/.setup ]]; then

View file

@ -10,6 +10,7 @@ build ()
add_file "/usr/bin/archboot-launcher.sh" "/usr/bin/launcher"
add_file "/usr/bin/archboot-quickinst.sh" "/usr/bin/quickinst"
add_file "/usr/bin/archboot-localize.sh" "/usr/bin/localize"
add_file "/usr/bin/archboot-pacsetup.sh" "/usr/bin/pacsetup"
add_file "/usr/bin/archboot-copy-mountpoint.sh" "/usr/bin/copy-mountpoint.sh"
add_file "/usr/bin/archboot-rsync-backup.sh" "/usr/bin/rsync-backup.sh"
add_file "/usr/bin/archboot-restore-usbstick.sh" "/usr/bin/restore-usbstick.sh"