From 9e78ba77a04219512bae5b0855b573ab03b6c1a5 Mon Sep 17 00:00:00 2001 From: Matei Valeanu Date: Thu, 6 Apr 2017 12:34:05 +0200 Subject: build/install: Add USB boot option Use isohybrid to add MBR for booting via BIOS from USB flash drives Also, Makefile "$(wildcard ubuntu-builder/*)" does not expand to what is expected (does not include ubuntu-builder/Dockerfile), as it uses a previous cached value. Check this link for an explanation: http://stackoverflow.com/questions/41470676/makefile-variable-expansion-with-wildcard-when-rule-creates-new-file JIRA: FUEL-236 Change-Id: I9c6521a382917822ce930ddf76391c5f3c3a9cb7 Signed-off-by: Matei Valeanu (cherry picked from commit eb8fbde87578e3853ffd23e403fd46bac6039cd0) --- build/docker/Dockerfile | 3 ++- build/docker/Makefile | 2 +- build/install/install.sh | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/build/docker/Dockerfile b/build/docker/Dockerfile index e41d5ec28..ce0c595d4 100644 --- a/build/docker/Dockerfile +++ b/build/docker/Dockerfile @@ -20,7 +20,8 @@ RUN apt-get install -y software-properties-common python-software-properties \ make python-setuptools python-all dpkg-dev debhelper ruby-json \ fuseiso git genisoimage bind9-host wget curl lintian tmux lxc iptables \ ca-certificates sudo apt-utils lsb-release dosfstools debmirror p7zip-full \ - build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev + build-essential ruby-dev rubygems-integration python-pip git rpm createrepo dpkg-dev \ + syslinux RUN gem install fpm RUN pip install git+https://github.com/openstack/fuel-plugins diff --git a/build/docker/Makefile b/build/docker/Makefile index 783881e8d..cdf4a359c 100644 --- a/build/docker/Makefile +++ b/build/docker/Makefile @@ -74,7 +74,7 @@ deepclean: clean clean-cache # - ubuntu-builder Dockerfile (includes eventual proxy env vars), runcontext; # - The contents of this Makefile .cacheid: .dockercfg - sha1sum Makefile runcontext $(wildcard ubuntu-builder/*) > .cachedata + sha1sum Makefile runcontext ubuntu-builder/* > .cachedata cat .cachedata | $(CACHETOOL) getid > .cacheid # Clean local data related to caching - called prior to ordinary build diff --git a/build/install/install.sh b/build/install/install.sh index 19ff14946..c03b7decb 100755 --- a/build/install/install.sh +++ b/build/install/install.sh @@ -208,6 +208,8 @@ make_iso_image() { --joliet-long \ -x "lost+found" -o $NEWISO . + isohybrid $NEWISO + isoinfo -d -i $NEWISO } -- cgit 1.2.3-korg