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:
parent
873190cae9
commit
0a1409ffcf
@ -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
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user