build/install: Add USB boot option 91/33191/1
authorMatei Valeanu <Matei.Valeanu@enea.com>
Thu, 6 Apr 2017 10:34:05 +0000 (12:34 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 10 Apr 2017 11:47:06 +0000 (11:47 +0000)
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 <Matei.Valeanu@enea.com>
(cherry picked from commit eb8fbde87578e3853ffd23e403fd46bac6039cd0)

build/docker/Dockerfile
build/docker/Makefile
build/install/install.sh

index e41d5ec..ce0c595 100644 (file)
@@ -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
index 783881e..cdf4a35 100644 (file)
@@ -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
index 19ff149..c03b7de 100755 (executable)
@@ -208,6 +208,8 @@ make_iso_image() {
         --joliet-long \
         -x "lost+found" -o $NEWISO .
 
+    isohybrid $NEWISO
+
     isoinfo -d -i $NEWISO
 }