move offline files to local, add correct setup title

This commit is contained in:
Tobias Powalowski 2022-03-18 17:18:00 +01:00
parent c2302310c4
commit c27463e8c7
4 changed files with 8 additions and 4 deletions

View file

@ -12,7 +12,7 @@ FILES=()
# Please change the hooks only if you know what you are doing. # Please change the hooks only if you know what you are doing.
HOOKS=(udev keyboard archboot_base_common archboot_base_latest \ HOOKS=(udev keyboard archboot_base_common archboot_base_latest \
archboot_installer_common archboot_installer_latest archboot_kexec \ archboot_installer_common archboot_installer_latest archboot_kexec \
archboot_licenses archboot_installer_offline) archboot_licenses archboot_installer_local)
# COMPRESSION # COMPRESSION
# Use this to compress the initramfs image. By default, gzip compression # Use this to compress the initramfs image. By default, gzip compression

View file

@ -1,8 +1,13 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# we rely on some output which is parsed in english! # we rely on some output which is parsed in english!
unset LANG unset LANG
LOCAL_DB="/var/cache/pacman/pkg/archboot.db"
ANSWER="/tmp/.setup" ANSWER="/tmp/.setup"
TITLE="Arch Linux Installation --> https://wiki.archlinux.org/Archboot" if [[ -e "${LOCAL_DB}" ]]; then
TITLE="Arch Linux Installation (Local mode) --> https://wiki.archlinux.org/Archboot"
else
TITLE="Arch Linux Installation (Online mode) --> https://wiki.archlinux.org/Archboot"
fi
# use the first VT not dedicated to a running console # use the first VT not dedicated to a running console
# don't use /mnt because it's intended to mount other things there! # don't use /mnt because it's intended to mount other things there!
# check first if bootet in archboot # check first if bootet in archboot
@ -38,7 +43,6 @@ DLPROG="wget"
# sources # sources
SYNC_URL="" SYNC_URL=""
MIRRORLIST="/etc/pacman.d/mirrorlist" MIRRORLIST="/etc/pacman.d/mirrorlist"
LOCAL_DB="/var/cache/pacman/pkg/archboot.db"
unset PACKAGES unset PACKAGES
# partitions # partitions

View file

@ -17,6 +17,6 @@ help ()
{ {
cat<<HELPEOF cat<<HELPEOF
This hook includes the archboot sources to This hook includes the archboot sources to
/var/cache/pacman/pkg /var/cache/pacman/pkg for local installation.
HELPEOF HELPEOF
} }