summaryrefslogtreecommitdiff
path: root/functions
diff options
context:
space:
mode:
authorCody A.W. Somerville <cody.somerville@canonical.com>2011-07-20 08:54:54 +0200
committerDaniel Baumann <daniel@debian.org>2011-07-20 08:54:54 +0200
commit968be1f426e442f9545fc08e7ede617525e6307f (patch)
treebbbf1ccd79c46363b414df8364daa154e2444846 /functions
parent651c8aebd2960123d14bf6715e3a0f149b2c9b98 (diff)
downloadvyos-live-build-968be1f426e442f9545fc08e7ede617525e6307f.tar.gz
vyos-live-build-968be1f426e442f9545fc08e7ede617525e6307f.zip
Appending 'linux32' to LB_ROOT_COMMAND if 'uname -m' is x86_64 and LB_ARCHITECTURE is i386.
Diffstat (limited to 'functions')
-rwxr-xr-xfunctions/defaults.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/functions/defaults.sh b/functions/defaults.sh
index 78c39e69f..75136f1cc 100755
--- a/functions/defaults.sh
+++ b/functions/defaults.sh
@@ -217,6 +217,11 @@ Set_defaults ()
fi
fi
+ if [ "${LB_ARCHITECTURE}" = "i386" ] && [ "$(uname -m)" = "x86_64" ]
+ then
+ LB_ROOT_COMMAND="${LB_ROOT_COMMAND} linux32"
+ fi
+
# Setting tasksel
case "${LB_DISTRIBUTION}" in
squeeze)