Bad code landed, causing ubuntu to be always landed.
Change-Id: Ia77073563fde70140169dbbc5a7448aad54295e2
This commit is contained in:
parent
b98e8d1b3f
commit
8220c00095
@ -62,8 +62,7 @@ function mount_tmp_image () {
|
|||||||
function create_base () {
|
function create_base () {
|
||||||
# Copy data in to the root.
|
# Copy data in to the root.
|
||||||
TARGET_ROOT=$TMP_MOUNT_PATH run_d root
|
TARGET_ROOT=$TMP_MOUNT_PATH run_d root
|
||||||
|
if [ -z "$(ls $TMP_MOUNT_PATH | grep -v lost+found)" ] ; then
|
||||||
if [ -z "$(ls /tmp/foo)" ] ; then
|
|
||||||
# Nothing copied in, use Ubuntu.
|
# Nothing copied in, use Ubuntu.
|
||||||
echo "Adding ubuntu element as / had no contents"
|
echo "Adding ubuntu element as / had no contents"
|
||||||
IMAGE_ELEMENT=$($SCRIPT_HOME/element-info --expand-dependencies $IMAGE_ELEMENT ubuntu)
|
IMAGE_ELEMENT=$($SCRIPT_HOME/element-info --expand-dependencies $IMAGE_ELEMENT ubuntu)
|
||||||
|
Loading…
Reference in New Issue
Block a user