Commit 1d1f0c1f authored by iv's avatar iv

nayuos: Fix final images location + changing checksums + fix keep_cache option.

parent 80eae80e
...@@ -48,7 +48,7 @@ logo_dir = {{ logo_dir }} ...@@ -48,7 +48,7 @@ logo_dir = {{ logo_dir }}
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = {{ scripts_dir }}/cros_full_build.in template = {{ scripts_dir }}/cros_full_build.in
rendered = ${directory:run}/cros_full_build rendered = ${directory:run}/cros_full_build
md5sum = e000e4187afcff0fa369904d944bbf78 md5sum = ce2c5c5caf51ff5311f238538a52da40
mode = 0770 mode = 0770
context = context =
# for access to the eggs from the instance # for access to the eggs from the instance
......
...@@ -68,7 +68,7 @@ sed -i '/openssh-server-init/ d' ${BASE_CHROMEOS_DEV_ROOT_EBUILD} ...@@ -68,7 +68,7 @@ sed -i '/openssh-server-init/ d' ${BASE_CHROMEOS_DEV_ROOT_EBUILD}
######################################## Build ############################################## ######################################## Build ##############################################
BOARDS="{{ boards_list }}" BOARDS="{{ boards_list }}"
KEEP_CACHE = "{{ keep_cache }}" KEEP_CACHE="{{ keep_cache }}"
for board in ${BOARDS}; do for board in ${BOARDS}; do
echo ${board} echo ${board}
if [ ${board} == daisy ]; then if [ ${board} == daisy ]; then
...@@ -127,7 +127,7 @@ done ...@@ -127,7 +127,7 @@ done
####################################### Post build ########################################## ####################################### Post build ##########################################
# keep only the substring between - as current release # keep only the substring between - as current release
RELEASE=$(echo ${BRANCH} | cut -d- -f2) RELEASE=$(echo ${BRANCH} | cut -d- -f2)
DIR_IMAGE_LOCATION={{ cros_location }}/{{ branch }}/images/${RELEASE}/$(date +'%F') DIR_IMAGE_LOCATION={{ cros_location }}/images/${RELEASE}/$(date +'%F')
install ${DIR_IMAGE_LOCATION} -d install ${DIR_IMAGE_LOCATION} -d
mv {{ cros_location }}/{{ branch }}/src/scripts/*.img ${DIR_IMAGE_LOCATION} mv {{ cros_location }}/{{ branch }}/src/scripts/*.img ${DIR_IMAGE_LOCATION}
......
...@@ -35,7 +35,7 @@ command = sudo -V ...@@ -35,7 +35,7 @@ command = sudo -V
recipe = slapos.recipe.template:jinja2 recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg rendered = ${buildout:directory}/instance.cfg
md5sum = c4f1b8c807051d2fd343ebfa099776ca md5sum = e8de561564b53357e0932b3f017c6ece
mode = 0644 mode = 0644
scripts_dir = ${:_profile_base_location_}/scripts scripts_dir = ${:_profile_base_location_}/scripts
ebuilds_dir = ${:_profile_base_location_}/custom_ebuilds ebuilds_dir = ${:_profile_base_location_}/custom_ebuilds
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment