Shrikumar Sharma fb157cf447 Add miniboot.cfg to enable subcloud add via USB install
miniboot.cfg is the debian kickstart required for subcloud
addition (miniboot). In this commit, this file is added and
copied to the relevant locations in order to include it into the
final ISO.

Test Plan:

PASS: Verify that miniboot.cfg is included in the iso under
      kickstart.

PASS: Verify that the installation of the subcloud succeeds with
      this kickstart (USB Install).

Story: 2010118
Task: 45739

Signed-off-by: Shrikumar Sharma <shrikumar.sharma@windriver.com>
Change-Id: I18e48bb468ff51b8f7132b971e7f2a3bbf157451
2022-07-12 14:15:42 +00:00

22 lines
735 B
Makefile

#!/usr/bin/make -f
# export DH_VERBOSE = 1
export ROOT=$(CURDIR)/debian/tmp
export platform_release="$(shell grep SW_VERSION /usr/include/build_info.h | cut -d ' ' -f 3)"
%:
dh $@
override_dh_auto_configure:
sed -i s/xxxPLATFORM_RELEASExxx/$(platform_release)/g kickstart.cfg
sed -i s/xxxPLATFORM_RELEASExxx/$(platform_release)/g miniboot.cfg
dh_auto_configure
override_dh_install:
install -d -m 755 $(ROOT)/var/www/pages/feed/rel-${platform_release}
install -p -D -m 700 kickstart.cfg $(ROOT)/var/www/pages/feed/rel-${platform_release}
install -d -m 755 $(ROOT)/var/pxeboot
install -p -D -m 700 menu.c32 $(ROOT)/var/pxeboot
install -p -D -m 700 miniboot.cfg $(ROOT)/var/www/pages/feed/rel-${platform_release}
dh_install