fix(iso): Do an initial pacman database update (#1)

This commit is contained in:
2023-02-19 20:38:42 +01:00
parent 8bc0c2e8c3
commit 9f9a1b86eb
2 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,10 @@ function we_are_changerooted () {
fi
}
function update_pacman_db () {
pacman -Sy
}
function install_pkgs () {
printf -- '%s\n' 'Installing packages ...'
pacman -S --needed --noconfirm "${@}"
@@ -471,6 +475,7 @@ function main () {
install_os_in_chroot
else
set_ntp
update_pacman_db
install_pkgs 'jq'
declare zfs_part
zfs_part="$(get_parts 'zfs')"