15ccf776be
Patch adds support for PowerPC Big-endian and Little-endian local fedora VM images and using VM images with two partitions, PReP boot and root partition. Since PowerPC requires PReP boot partition to be present. Change-Id: Iba03226e187609df898732c13b1aa5f895b156e3 Closes-Bug: 1413487
27 lines
501 B
Bash
Executable File
27 lines
501 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [ "i386" = "$ARCH" ]; then
|
|
basearch=i386
|
|
arch=i686
|
|
elif [ "amd64" = "$ARCH" ]; then
|
|
basearch=x86_64
|
|
arch=x86_64
|
|
elif [[ "$ARCH" = "ppc64" ]]; then
|
|
basearch=ppc64
|
|
arch=ppc64
|
|
elif [[ "$ARCH" = "ppc64el" ]]; then
|
|
basearch=ppc64el
|
|
arch=ppc64el
|
|
else
|
|
echo "********************"
|
|
echo "Unknown arch '$ARCH'"
|
|
echo "********************"
|
|
exit 1
|
|
fi
|
|
|
|
echo $basearch > /etc/yum/vars/basearch
|
|
echo $arch > /etc/yum/vars/arch
|