Commit 9be490db authored by iv's avatar iv

nayuos: No need to change /etc/hosts.

parent db72eab3
......@@ -64,10 +64,7 @@ template = {{ scripts_dir }}/modify_image.sh.in
rendered = ${directory:cros_location}/src/scripts/modify_image.sh
mode = 0770
commands = sudo rm /tmp/m/etc/init/openssh-server.conf
sudo install -d /tmp/m/var/run/net/
&& sudo sh -c "printf '127.0.0.1 localhost\n::1 localhost' > /tmp/m/var/run/net/hosts" \
&& sudo rm /tmp/m/etc/hosts \
&& sudo ln -s /tmp/m/etc/hosts /var/run/net/hosts
sudo emerge-$${BOARD} --root=/tmp/m --root-deps=rdeps --usepkgonly git
context =
key board parameters:configuration.boards
key commands :commands
\ No newline at end of file
......@@ -26,10 +26,12 @@ for board in ${BOARDS}; do
BUILD_LOG={{ instance_log_dir }}/cros_build.log
# preparing packages (for chroot and image)
date >> $BUILD_LOG
echo "building packages for a ${board}-flavoured Chromium OS..." >> $BUILD_LOG
cros_sdk -- ./build_packages --board=${board} >> $BUILD_LOG
# Chromium original dev image
date >> $BUILD_LOG
echo "building image for a ${board}-flavoured Chromium OS..." >> $BUILD_LOG
cros_sdk -- ./build_image --board=${board} >> $BUILD_LOG \
&& echo "removing old image if any and creating image file $IMAGE_LOCATION..." >> $BUILD_LOG \
......@@ -37,10 +39,11 @@ for board in ${BOARDS}; do
&& cros_sdk -- cros flash --board=${board} file://$IMAGE_LOCATION >> $BUILD_LOG
# NayuOS
date >> $BUILD_LOG
echo "rebuilding image with noenable_rootfs_verification and modifying image" >> $BUILD_LOG
cros_sdk -- ./build_image --board=${board} --noenable_rootfs_verification >> $BUILD_LOG \
&& cros_sdk -- ./modify_image.sh ${board} \
cros_sdk -- ./build_image --noenable_rootfs_verification --board=${board} >> $BUILD_LOG \
&& echo "modifying image, removing old image if any and creating image file $NAYU_IMAGE_LOCATION..." >> $BUILD_LOG \
&& cros_sdk -- ./modify_image.sh ${board} \
&& cros_sdk -- rm -f $NAYU_IMAGE_LOCATION && cros_sdk -- touch $NAYU_IMAGE_LOCATION \
&& cros_sdk -- cros flash --board=${board} file://$NAYU_IMAGE_LOCATION >> $BUILD_LOG
......
......@@ -35,7 +35,7 @@ command = sudo -V
recipe = slapos.recipe.template:jinja2
template = ${:_profile_base_location_}/instance.cfg
rendered = ${buildout:directory}/instance.cfg
md5sum = fc963e19bb083726bca7e38224c0edfa
md5sum = 1d0d186af7d838ae79313d1b330c1c37
mode = 0644
scripts_dir = ${:_profile_base_location_}/scripts
context =
......
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