2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-16 10:39:23 +00:00

Move esxi customization back to include

This makes modding the template a bit safer and
more powerful.

It seems it was incorrect that the issue in esxi6
was not due to %include and is just a fact of life.
This commit is contained in:
Jarrod Johnson 2020-06-12 11:36:56 -04:00
parent 92913e1119
commit b8dcfbae45
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,6 @@
accepteula
clearpart --firstdisk --overwritevmfs
install --firstdisk --overwritevmfs
%include /tmp/ksnet
%include /tmp/rootpw
reboot

View File

@ -1,7 +1,7 @@
#!/bin/sh
/opt/confluent/bin/apiclient /confluent-public/os/$profile/scripts/makeksnet >> /tmp/makeksnet
chmod +x /tmp/makeksnet
/tmp/makeksnet >> /etc/confluent/ks.cfg
/tmp/makeksnet > /tmp/ksent
rootpw=$(grep ^rootpassword: /etc/confluent/confluent.deploycfg|sed -e 's/^rootpassword: //')
echo rootpw --iscrypted $rootpw >> /etc/confluent/ks.cfg
echo rootpw --iscrypted $rootpw > /tmp/rootpw
export BOOT_CMDLINE=ks=/etc/confluent/ks.cfg