From 2cd44bd77ca9d05208a0d87205459ddd80a3286c Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Wed, 1 May 2013 15:13:24 +0100 Subject: [PATCH] Fix missing export of $ARCH So that elements can have access to the variable. Change-Id: I9a63160ef891e3a3a3c6c90856e2539250c8b807 --- lib/img-defaults | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/img-defaults b/lib/img-defaults index 57bc898e..213d63ba 100644 --- a/lib/img-defaults +++ b/lib/img-defaults @@ -19,7 +19,7 @@ if [ -f /etc/debian_version ]; then else _ARCH=$(uname -m) fi -ARCH=${ARCH:-_ARCH} +ARCH=${ARCH:-$_ARCH} case $ARCH in "x86_64") @@ -32,6 +32,7 @@ case $ARCH in echo "WARNING: Unknown architecture: $ARCH" ;; esac +export ARCH FS_TYPE=${FS_TYPE:-ext4} # Used to set the file extension only at this stage.