From 9f9a1b86ebf5487ee51b8b16346ed1ce0dfd3aa4 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Sun, 19 Feb 2023 20:38:42 +0100 Subject: [PATCH] fix(iso): Do an initial pacman database update (#1) --- README.md | 1 + setup.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 913ab6f..3be7ecb 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/setup.sh b/setup.sh index a4ffd20..b70839c 100644 --- a/setup.sh +++ b/setup.sh @@ -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')"