From c334c5e46d5a66e6ff00641c803465b60daafd76 Mon Sep 17 00:00:00 2001 From: Gaetan Trellu Date: Fri, 2 Feb 2018 11:12:02 -0500 Subject: [PATCH] Accept the IBM DB2 license during the DIB process During the DB2 installation, the db2_install process asks a question about the license. Disk Image Builder will hang until "yes" or "no" is manually entered. db2_install script provides the "-y" option to accept automatically the license. From db2_install help: Specifies that you have read and agreed to the license agreement file in the db2/license directory on the CD. This parameter is mandatory when -n is specified. Change-Id: I8a8330adc41cbed60c8472f925b10cf816aed44e Closes-Bug: #1747031 --- integration/scripts/files/elements/ubuntu-db2/install.d/10-db2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/scripts/files/elements/ubuntu-db2/install.d/10-db2 b/integration/scripts/files/elements/ubuntu-db2/install.d/10-db2 index ba18c63438..4e87733b42 100755 --- a/integration/scripts/files/elements/ubuntu-db2/install.d/10-db2 +++ b/integration/scripts/files/elements/ubuntu-db2/install.d/10-db2 @@ -26,7 +26,7 @@ apt-get --allow-unauthenticated install libaio1 apt-get --allow-unauthenticated install libstdc++6 # start the installation process. Accepts the default installation directory '/opt/ibm/db2/current' -${DB2_PKG_LOCATION}/expc/db2_install -b ${DB2_INSTALL_LOCATION} -f sysreq -l ${DB2_PKG_LOCATION}/db2_install.log +${DB2_PKG_LOCATION}/expc/db2_install -b ${DB2_INSTALL_LOCATION} -f sysreq -l ${DB2_PKG_LOCATION}/db2_install.log -y # create the DB2 users. # DB2 instance owner - db2inst1