2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-25 04:32:11 +00:00

Amend esxi update

Some mistakes were made in the profile
This commit is contained in:
Jarrod Johnson 2020-06-10 12:34:46 -04:00
parent 873190cae9
commit 0a1409ffcf
2 changed files with 4 additions and 4 deletions

View File

@ -22,6 +22,6 @@ profile=$(grep ^profile: /etc/confluent/confluent.deploycfg | sed -e 's/^profile
chmod +x /tmp/makeksnet
/tmp/makeksnet > /tmp/ksnet
rootpw=$(grep ^rootpassword: /etc/confluent/confluent.deploycfg|sed -e 's/^rootpassword: //')
echo rootpw --iscrypted $rootpw > /tmp/rootpw
export BOOT_OPTIONS=ks=/etc/confluent/ks.cfg
exec /bin/install
echo rootpw --iscrypted $rootpw > /tmp/rootuser
export BOOT_CMDLINE=ks=/etc/confluent/ks.cfg
exec /bin/install

View File

@ -75,7 +75,7 @@ def update_boot_esxi(profiledir, profile, label):
else:
newbootcfg += cfgline + '\n'
os.makedirs('{0}/boot/efi/boot/'.format(profiledir))
with open('{0}/boot/efi/boot/BOOT.CFG'.format(profiledir), 'w+') as bcfg:
with open('{0}/boot/efi/boot/boot.cfg'.format(profiledir), 'w+') as bcfg:
bcfg.write(newbootcfg)
os.symlink('/var/lib/confluent/public/site/initramfs.tgz',
'{0}/boot/site.tgz'.format(profiledir))