02e73386cc
The build_coreos_image.sh script outputs files owned by root because it runs the make coreos, using sudo. This patch adds a couple of lines in that script to ensure that the files created are useable without having to use sudo after the script is finished. ** The coreos build post job requires this change ** Change-Id: Id462ac350940bd70b40e5ca76521ecf3e652f0e0
29 lines
765 B
Bash
Executable File
29 lines
765 B
Bash
Executable File
#!/bin/bash -xe
|
|
#
|
|
# This builds a CoreOS IPA image, assuming dependencies are installed
|
|
#
|
|
# The system this runs on needs these binaries available, most of which
|
|
# are installed by default on Ubuntu Trusty:
|
|
# - docker
|
|
# - gzip / gunzip
|
|
# - uuidgen
|
|
# - cpio
|
|
# - find (gnu)
|
|
# - grep
|
|
# - gpg (to validate key of downloaded CoreOS image)
|
|
#
|
|
# Alternatively, run full_trusty_build.bash which will install
|
|
# all requirements then perform the build.
|
|
|
|
if [[ -x /usr/bin/docker.io ]]; then
|
|
sudo -E ln -sf /usr/bin/docker.io /usr/local/bin/docker
|
|
fi
|
|
sudo -E pip install -r requirements.txt
|
|
cd imagebuild/coreos
|
|
sudo -E make clean
|
|
sudo -E make
|
|
|
|
# Output of make is owned by root, so convert owner to user who started the script
|
|
me=`whoami`
|
|
sudo chown -R $me: UPLOAD
|