Compare commits

...

3 commits

Author SHA1 Message Date
Tobias Powalowski
274678334e move all _PACKAGES initialization to common.sh 2024-09-09 14:15:56 +02:00
Tobias Powalowski
0428c86c26 revert firmware changes 2024-09-09 14:11:54 +02:00
Tobias Powalowski
2c7726a14e revert firmware changes 2024-09-09 14:06:15 +02:00
7 changed files with 7 additions and 9 deletions

View file

@ -4,6 +4,8 @@
_PACKAGES=( _PACKAGES=(
base base
linux linux
linux-firmware
linux-firmware-marvell
polkit polkit
) )
# grub setup # grub setup

View file

@ -42,7 +42,6 @@ _prepare_pacman() {
# package_installation # package_installation
_install_packages() { _install_packages() {
. /etc/archboot/defaults
_auto_packages _auto_packages
#shellcheck disable=SC2068 #shellcheck disable=SC2068
${_PACMAN} -S ${_PACKAGES[@]} ${_PACMAN} -S ${_PACKAGES[@]}

View file

@ -24,10 +24,6 @@ _KEYRING=(archlinux-keyring)
_LABEL="Exit" _LABEL="Exit"
_LOCAL_DB="${_CACHEDIR}/archboot.db" _LOCAL_DB="${_CACHEDIR}/archboot.db"
_LOG="/dev/tty11" _LOG="/dev/tty11"
_LINUX_FIRMWARE=(
linux-firmware
linux-firmware-marvell
)
_MAN_INFO_PACKAGES=( _MAN_INFO_PACKAGES=(
man-db man-db
man-pages man-pages

View file

@ -159,7 +159,6 @@ _install_base_packages() {
else else
_MKINITCPIO=initramfs _MKINITCPIO=initramfs
fi fi
_PACKAGES+=(${_LINUX_FIRMWARE[@]})
if [[ "${2}" == "use_binfmt" ]]; then if [[ "${2}" == "use_binfmt" ]]; then
#shellcheck disable=SC2068,SC2145 #shellcheck disable=SC2068,SC2145
echo "Downloading ${_KEYRING[@]} ${_PACKAGES[@]} to ${1}..." echo "Downloading ${_KEYRING[@]} ${_PACKAGES[@]} to ${1}..."

View file

@ -96,6 +96,10 @@ _local_pacman_conf() {
} }
_auto_packages() { _auto_packages() {
# add packages from Archboot defaults
. /etc/archboot/defaults
# remove linux-firmware packages first
_PACKAGES=(${_PACKAGES[@]/linux-firmware*})
# Add filesystem packages # Add filesystem packages
if ${_LSBLK} FSTYPE | rg -q 'bcachefs'; then if ${_LSBLK} FSTYPE | rg -q 'bcachefs'; then
! echo "${_PACKAGES[@]}" | rg -qw 'bcachefs-tools' && _PACKAGES+=(bcachefs-tools) ! echo "${_PACKAGES[@]}" | rg -qw 'bcachefs-tools' && _PACKAGES+=(bcachefs-tools)

View file

@ -62,8 +62,6 @@ _run_autoconfig() {
_install_packages() { _install_packages() {
_destdir_mounts || return 1 _destdir_mounts || return 1
# add packages from Archboot defaults
. /etc/archboot/defaults
_auto_packages _auto_packages
#shellcheck disable=SC2116,SC2068 #shellcheck disable=SC2116,SC2068
_dialog --title " Summary " --yesno "Next step will install the following packages for a minimal system:\n$(echo ${_PACKAGES[@]})\n\nYou can watch the progress on your ${_VC} console." 9 75 || return 1 _dialog --title " Summary " --yesno "Next step will install the following packages for a minimal system:\n$(echo ${_PACKAGES[@]})\n\nYou can watch the progress on your ${_VC} console." 9 75 || return 1

View file

@ -20,7 +20,7 @@ _download_packages() {
_pacman_key_system _pacman_key_system
fi fi
#shellcheck disable=SC2206 #shellcheck disable=SC2206
_PACKAGES+=(${_KEYRING[@]} ${_LINUX_FIRMWARE[@]} ${_ARCHBOOT} ${_MAN_INFO_PACKAGES[@]}) _PACKAGES+=(${_KEYRING[@]} ${_ARCHBOOT} ${_MAN_INFO_PACKAGES[@]})
#shellcheck disable=SC2145 #shellcheck disable=SC2145
echo "Downloading ${_PACKAGES[@]} to ${1}..." echo "Downloading ${_PACKAGES[@]} to ${1}..."
#shellcheck disable=SC2086,SC2068 #shellcheck disable=SC2086,SC2068