Merge "Add support for using local PowerPC VM image"
This commit is contained in:
commit
d67e2de859
@ -50,7 +50,7 @@ function extract_image() {
|
|||||||
|
|
||||||
qemu-img convert -f qcow2 -O raw $CACHED_IMAGE $WORKING/$RAW_FILE
|
qemu-img convert -f qcow2 -O raw $CACHED_IMAGE $WORKING/$RAW_FILE
|
||||||
|
|
||||||
ROOT_PARTITON=p1
|
ROOT_PARTITON=p$(sudo kpartx -l $WORKING/$RAW_FILE | awk "/loop[0-9]+p/"|wc -l)
|
||||||
|
|
||||||
# kpartx fails if no /dev/loop* exists, "losetup -f" prints first unused
|
# kpartx fails if no /dev/loop* exists, "losetup -f" prints first unused
|
||||||
# loop device and creates it if it doesn't exist
|
# loop device and creates it if it doesn't exist
|
||||||
|
@ -9,6 +9,12 @@ if [ "i386" = "$ARCH" ]; then
|
|||||||
elif [ "amd64" = "$ARCH" ]; then
|
elif [ "amd64" = "$ARCH" ]; then
|
||||||
basearch=x86_64
|
basearch=x86_64
|
||||||
arch=x86_64
|
arch=x86_64
|
||||||
|
elif [[ "$ARCH" = "ppc64" ]]; then
|
||||||
|
basearch=ppc64
|
||||||
|
arch=ppc64
|
||||||
|
elif [[ "$ARCH" = "ppc64el" ]]; then
|
||||||
|
basearch=ppc64el
|
||||||
|
arch=ppc64el
|
||||||
else
|
else
|
||||||
echo "********************"
|
echo "********************"
|
||||||
echo "Unknown arch '$ARCH'"
|
echo "Unknown arch '$ARCH'"
|
||||||
|
Loading…
Reference in New Issue
Block a user