archboot/usr/bin/archboot-x86_64-server-release.sh

19 lines
528 B
Bash
Raw Normal View History

2023-07-28 17:03:22 +02:00
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-2.0-only
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/server.sh
_root_check
_container_check
if echo "${_BASENAME}" | grep -qw riscv64 || echo "${_BASENAME}" | grep -qw aarch64; then
_update_pacman_chroot || exit 1
fi
_update_source
if echo "${_BASENAME}" | grep -qw x86_64; then
_x86_64_pacman_use_default || exit 1
fi
_server_release || exit 1
if echo "${_BASENAME}" | grep -qw x86_64; then
_x86_64_pacman_restore || exit 1
fi
# vim: set ft=sh ts=4 sw=4 et: