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

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

View File

@ -43,6 +43,7 @@ Commit _types_ besides `fix` and `feat` are:
The following _scopes_ are known for this project. A Conventional Commits commit message may optionally use one of the following scopes or none:
* `iso`: Changing Arch Linux ISO CD
* `zbm`: Adjusting ZFSBootMenu's behavior
* `zfs`: A change to how ZFS interacts with the system, either a pool or a dataset
* `os`: Getting an perating system set up to correctly work in a ZFS boot environment

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')"