Browse Source

Add MASTER_NODE_EXTRA_PACKAGES processing

Each package from MASTER_NODE_EXTRA_PACKAGES
shall be installed from kickstart.

Related-Bug: #1526544

Change-Id: I569c15177ca8cd5f990a4ee1ae986654975919a1
Ivan Suzdal 2 years ago
parent
commit
722bcb67df
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      iso/ks.template

+ 13
- 0
iso/ks.template View File

@@ -471,7 +471,20 @@ rm -rf ${FS}
471 471
 
472 472
 
473 473
 
474
+%post --log=/root/anaconda-post-install-extrapackages.log
475
+#!/bin/bash
476
+set -x
477
+
478
+MASTER_NODE_EXTRA_PACKAGES=""
479
+source "/root/anaconda.cmdline.vars"
474 480
 
481
+if [ -n "${MASTER_NODE_EXTRA_PACKAGES}" ]; then
482
+  for pkg in ${MASTER_NODE_EXTRA_PACKAGES}; do
483
+    yum -y install ${pkg}
484
+  done
485
+fi
486
+
487
+%end
475 488
 
476 489
 %post --log=/root/anaconda-post-configure-autologon.log
477 490
 #!/bin/bash

Loading…
Cancel
Save