From: Albert Date: Thu, 2 Jun 2016 14:49:48 +0000 (+0300) Subject: Fix for file injection is broken on centos computes with Cirros images LP #1587960 X-Git-Url: https://review.fuel-infra.org/gitweb?p=packages%2Ftrusty%2Fcirros-testvm.git;a=commitdiff_plain;h=refs%2Fheads%2Fmaster Fix for file injection is broken on centos computes with Cirros images LP #1587960 Closes-bug: #1587960 Change-Id: I0091f8644ef15f5b14fa2dbab4c866ab1507acb1 --- diff --git a/cirros-testvm/cirros-u14.04-kver-3.13.0-85-x86_64-disk.img b/cirros-testvm/cirros-u14.04-kver-3.13.0-85-x86_64-disk.img index f673522..882db6a 100644 Binary files a/cirros-testvm/cirros-u14.04-kver-3.13.0-85-x86_64-disk.img and b/cirros-testvm/cirros-u14.04-kver-3.13.0-85-x86_64-disk.img differ diff --git a/cirros-testvm/src-cirros/src/lib/cirros/ds/configdrive b/cirros-testvm/src-cirros/src/lib/cirros/ds/configdrive index 9bc201d..e238503 100755 --- a/cirros-testvm/src-cirros/src/lib/cirros/ds/configdrive +++ b/cirros-testvm/src-cirros/src/lib/cirros/ds/configdrive @@ -4,6 +4,7 @@ VERBOSITY=0 CONFIG=/etc/cirros-init/configdrive NAME="${0##*/}" LABEL="config-2" +LABEL_ALT="CONFIG-2" SEED_PRE_D="/var/lib/cloud/seed/configdrive-pre" SEED_POST_D="/var/lib/cloud/seed/configdrive" @@ -22,7 +23,8 @@ search_local() { local out_d="$1" local devlist="" num="" found="" fstree_d="" local raw_d="" dev="" rdir="" mdjson="" ud="" found="" - find_devs_with "LABEL=$LABEL" || + find_devs_with "LABEL=$LABEL" && [ -n "${_RET}" ] || + find_devs_with "LABEL=$LABEL_ALT" || { error "failed to find devs"; return 1; } devlist=${_RET} @@ -61,7 +63,7 @@ search_local() { if [ -f "$mdjson" ]; then json2fstree "$fstree_d" "$mdjson" || fail "json2fstree failed on $mdjson for $dev" - ud="$rdir/openstack/latest/user_data" + ud="$rdir/openstack/latest/user_data" [ -f "$ud" ] && cp "$ud" "$fstree_d/user-data" found="$dev" mv "$rdir" "$raw_d" || diff --git a/debian/changelog b/debian/changelog index d77ed53..e94475c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +cirros-testvm (0.3.4-2~u14.04+mos5) mos; urgency=medium + + * Fix for file injection is broken on centos computes with Cirros images + LP#1571704 + + -- Albert Syriy Mon, 2 Jun 2016 17:55:15 +0200 + cirros-testvm (0.3.4-2~u14.04+mos4) mos9.0; urgency=medium * Add image size up to 48M due to the LP#1571704