mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
restructure x86_64 iso script
This commit is contained in:
parent
61b36d32ef
commit
b5335f7d0a
1 changed files with 8 additions and 4 deletions
|
@ -2,6 +2,8 @@
|
|||
# created by Tobias Powalowski <tpowa@archlinux.org>
|
||||
|
||||
_BASENAME="$(basename "${0}")"
|
||||
_PRESET_DIR="/etc/archboot/presets"
|
||||
_TARBALL_HELPER="/usr/bin/archboot-tarball-helper.sh"
|
||||
_SHIM_URL="https://kojipkgs.fedoraproject.org/packages/shim/15.4/5/x86_64"
|
||||
_SHIM_VERSION="shim-x64-15.4-5.x86_64.rpm"
|
||||
_SHIM32_VERSION="shim-ia32-15.4-5.x86_64.rpm"
|
||||
|
@ -43,10 +45,6 @@ usage () {
|
|||
|
||||
[[ -z "${1}" ]] && usage
|
||||
|
||||
|
||||
PRESET_DIR="/etc/archboot/presets"
|
||||
TARBALL_HELPER="/usr/bin/archboot-tarball-helper.sh"
|
||||
|
||||
# change to english locale!
|
||||
export LANG="en_US"
|
||||
|
||||
|
@ -71,6 +69,12 @@ if ! [[ ${UID} -eq 0 ]]; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
### check for aarch64
|
||||
if ! [[ "$(uname -m)" == "x86_64" ]]; then
|
||||
echo "ERROR: Please run on x86_64 hardware."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#set PRESET
|
||||
[[ -z "${_PRESET}" ]] && _PRESET="x86_64"
|
||||
_PRESET=""${_PRESET_DIR}"/"${_PRESET}""
|
||||
|
|
Loading…
Reference in a new issue