aboutsummaryrefslogtreecommitdiffstats
path: root/functions.sh
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2022-04-19 18:11:27 +0200
committerJybz <j.biernacki@free.fr>2022-04-19 18:11:27 +0200
commit08f711f798b9f0f4be66cd2e63b83b2bcc9e1cae (patch)
treed3b4c8c558a5d5fa97ab25056e453d4fffc9437e /functions.sh
parent0c84dea5600232049a833c98ab0ea104e44d94bb (diff)
downloadmageia4arm-08f711f798b9f0f4be66cd2e63b83b2bcc9e1cae.tar
mageia4arm-08f711f798b9f0f4be66cd2e63b83b2bcc9e1cae.tar.gz
mageia4arm-08f711f798b9f0f4be66cd2e63b83b2bcc9e1cae.tar.bz2
mageia4arm-08f711f798b9f0f4be66cd2e63b83b2bcc9e1cae.tar.xz
mageia4arm-08f711f798b9f0f4be66cd2e63b83b2bcc9e1cae.zip
Take generic aarch64 as source, add image conversion step, typo function name
Diffstat (limited to 'functions.sh')
-rwxr-xr-xfunctions.sh16
1 files changed, 14 insertions, 2 deletions
diff --git a/functions.sh b/functions.sh
index 76fd278..7df8d67 100755
--- a/functions.sh
+++ b/functions.sh
@@ -63,13 +63,20 @@ function check_environment() {
if [ 0 -ne ${?} ]; then
error "urpmi is missing."
fi
- elif [ "x${INSTALL_METHOD}" == "xurpmi" ]; then
+ elif [ "x${INSTALL_METHOD}" == "xdnf" ]; then
hash /usr/bin/dnf
if [ 0 -ne ${?} ]; then
error "dnf is missing."
fi
fi
+ list_of_tools="/usr/bin/qemu-arm-static /usr/bin/qemu-img"
### TODO add other environmnet things, like : from function createchroot()
+ for tool in ${list_of_tools} ; do
+ hash ${tool}
+ if [ 0 -ne ${?} ]; then
+ error "${tool} is missing."
+ fi
+ done
}
function verify_disk_space() {
@@ -99,7 +106,7 @@ function createchroot() {
fi
fi
- if [ `arch` != "${ARM_VERSION}" ]; then
+ if [ $(arch) != "${ARM_VERSION}" ]; then
if ! [ -f /usr/bin/qemu-arm-static ]; then
title "Qemu package not present : installing qemu packages"
#/usr/bin/dnf --assumeyes --setopt=install_weak_deps=False install qemu-user-static
@@ -921,6 +928,11 @@ function copyingCustomSystem() {
return 1
}
+function imageConversion() {
+ # reimplement this function in your platforms/yourplatform/specialFunctions.sh file.
+ return 0
+}
+
ERRORN=0