move _ARCH to common

This commit is contained in:
Tobias Powalowski 2022-11-20 09:26:59 +01:00
parent 2d3f093c03
commit 4518d59b28
9 changed files with 3 additions and 8 deletions

View file

@ -1,6 +1,5 @@
#!/usr/bin/env bash
# created by Tobias Powalowski <tpowa@archlinux.org>
_ARCH="aarch64"
. /etc/archboot/defaults
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/container.sh

View file

@ -1,6 +1,5 @@
#!/usr/bin/env bash
# created by Tobias Powalowski <tpowa@archlinux.org>
_ARCH="aarch64"
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/release.sh
[[ -z "${1}" ]] && _usage

View file

@ -1,5 +1,4 @@
#! /bin/bash
_ARCH="aarch64"
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/server.sh
_root_check

View file

@ -1,6 +1,5 @@
#!/usr/bin/env bash
# created by Tobias Powalowski <tpowa@archlinux.org>
_ARCH="riscv64"
. /etc/archboot/defaults
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/container.sh

View file

@ -1,6 +1,5 @@
#!/usr/bin/env bash
# created by Tobias Powalowski <tpowa@archlinux.org>
_ARCH="riscv64"
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/release.sh
[[ -z "${1}" ]] && _usage

View file

@ -1,5 +1,4 @@
#! /bin/bash
_ARCH="riscv64"
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/server.sh
_root_check

View file

@ -1,6 +1,5 @@
#!/usr/bin/env bash
# created by Tobias Powalowski <tpowa@archlinux.org>
_ARCH="x86_64"
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/release.sh
[[ -z "${1}" ]] && _usage

View file

@ -1,5 +1,4 @@
#! /bin/bash
_ARCH="x86_64"
. /usr/lib/archboot/common.sh
. /usr/lib/archboot/server.sh
_root_check

View file

@ -8,10 +8,13 @@ _KEYRING="archlinux-keyring"
if echo ${_BASENAME} | grep -qw aarch64; then
_ARCHBOOT="archboot-arm"
_KEYRING="${_KEYRING} archlinuxarm-keyring"
_ARCH="aarch64"
elif echo ${_BASENAME} | grep -qw riscv64; then
_ARCHBOOT="archboot-riscv"
_ARCH="riscv64"
else
_ARCHBOOT="archboot"
_ARCH="x86_64"
fi
_PACMAN_MIRROR="/etc/pacman.d/mirrorlist"
_PACMAN_CONF="/etc/pacman.conf"