Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Workaround for ovfenv not working after a reboot #762

Merged
merged 1 commit into from
Nov 28, 2018

Conversation

kars7e
Copy link
Contributor

@kars7e kars7e commented Nov 27, 2018

Add a wrapper around ovfenv that checks if ovf properties are properly
returned. If not, read the data from the cache stored on disk.

Fixes #754
Fixes #747

Additional fixes:

  • Correctly sets the locale
  • creates firstboot file so that firstboot-only scripts do not execute
    again
  • use HOST instead of HOSTNAME as HOSTNAME is a built-in variable

Testing:

  • tested in fusion 11.0.2
  • tested on VMC

@kars7e kars7e added the run-e2e-solo Testing e2e-solo label Nov 27, 2018
Copy link
Contributor

@zjs zjs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like a good workaround for the issue.

Should ovfenv_wrapper.sh be sourced in sshd_permitrootlogin.sh as well?

ova/scripts/systemd/scripts/network-config.sh Outdated Show resolved Hide resolved
ova/scripts/systemd/scripts/ovfenv_wrapper.sh Outdated Show resolved Hide resolved
ova/scripts/systemd/scripts/ovfenv_wrapper.sh Outdated Show resolved Hide resolved
ova/scripts/systemd/scripts/ovfenv_wrapper.sh Outdated Show resolved Hide resolved
ova/scripts/systemd/scripts/ovfenv_wrapper.sh Outdated Show resolved Hide resolved
ova/scripts/systemd/scripts/ovfenv_wrapper.sh Outdated Show resolved Hide resolved
ova/scripts/systemd/scripts/ovfenv_wrapper.sh Show resolved Hide resolved
Add a wrapper around ovfenv that checks if ovf properties are properly
returned. If not, reads the data from cache stored on disk.

Additional fixes:
- Correctly sets the locale
- creates firstboot file so that firstboot-only scripts do not execute
  again

Testing:
- tested in fusion 11.0.2
- tested on VMC
@kars7e
Copy link
Contributor Author

kars7e commented Nov 28, 2018

@zjs thanks for a thorough review! I added the wrapper to sshd_permitrootlogin.sh as well.

Copy link
Contributor

@berndtj berndtj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have anything to add beyond @zjs's comments. It all looks good to me.

@kars7e kars7e merged commit eb181c5 into vmware-archive:solo Nov 28, 2018
pzmrzy pushed a commit to pzmrzy/dispatch that referenced this pull request Dec 4, 2018
Add a wrapper around ovfenv that checks if ovf properties are properly
returned. If not, reads the data from cache stored on disk.

Additional fixes:
- Correctly sets the locale
- creates firstboot file so that firstboot-only scripts do not execute
  again

Testing:
- tested in fusion 11.0.2
- tested on VMC
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants