mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 12:00:37 +02:00
code fixing
This commit is contained in:
parent
b183221830
commit
4bf9840c42
1 changed files with 3 additions and 3 deletions
|
@ -19,9 +19,9 @@ _update_pacman_chroot() {
|
||||||
# update pacman chroot
|
# update pacman chroot
|
||||||
cd "${_ISO_HOME}" || exit 1
|
cd "${_ISO_HOME}" || exit 1
|
||||||
[[ -d "${_ARCH_DIR}" ]] || mkdir "${_ARCH_DIR}"
|
[[ -d "${_ARCH_DIR}" ]] || mkdir "${_ARCH_DIR}"
|
||||||
echo "Downloading archlinuxarm pacman aarch64 chroot..."
|
echo "Downloading pacman ${_ARCH} chroot..."
|
||||||
[[ -f pacman-aarch64-chroot-latest.tar.zst ]] && rm pacman-aarch64-chroot-latest.tar.zst{,.sig} 2>/dev/null
|
[[ -f pacman-${_ARCH}-chroot-latest.tar.zst ]] && rm pacman-${_ARCH}-chroot-latest.tar.zst{,.sig} 2>/dev/null
|
||||||
wget ${_ARCHBOOT_CHROOT_PUBLIC}/${_PACMAN_CHROOT}{,.sig} >/dev/null 2>&1
|
wget ${_ARCH_CHROOT_PUBLIC}/${_PACMAN_CHROOT}{,.sig} >/dev/null 2>&1
|
||||||
# verify download
|
# verify download
|
||||||
sudo -u "${_USER}" gpg --verify "${_PACMAN_CHROOT}.sig" >/dev/null 2>&1 || exit 1
|
sudo -u "${_USER}" gpg --verify "${_PACMAN_CHROOT}.sig" >/dev/null 2>&1 || exit 1
|
||||||
bsdtar -C "${_ARCH_DIR}" -xf "${_PACMAN_CHROOT}" >/dev/null 2>&1
|
bsdtar -C "${_ARCH_DIR}" -xf "${_PACMAN_CHROOT}" >/dev/null 2>&1
|
||||||
|
|
Loading…
Reference in a new issue