-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Failed to execute vagrant_startup.sh in Ubuntu 20.04 #1049
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
virtual/vagrant_startup.sh
Outdated
if [[ ! ${VERSION_ID} =~ ^20\.* ]]; then | ||
APT_DEPENDENCIES=${APT_DEPENDENCIES}" libvirt-bin" | ||
fi | ||
export ${APT_DEPENDENCIES} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correction: this line should be
export APT_DEPENDENCIES
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I fixed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! It looked good, but I hadn't actually tested.
When I did:
+ APT_DEPENDENCIES='build-essential sshpass qemu-kvm libvirt-dev bridge-utils libguestfs-tools qemu ovmf virt-manager firewalld'
+ [[ ! 18.04 =~ ^20\.* ]]
+ APT_DEPENDENCIES='build-essential sshpass qemu-kvm libvirt-dev bridge-utils libguestfs-tools qemu ovmf virt-manager firewalld libvirt-bin'
+ export build-essential sshpass qemu-kvm libvirt-dev bridge-utils libguestfs-tools qemu ovmf virt-manager firewalld libvirt-bin
./vagrant_startup.sh: line 81: export: `build-essential': not a valid identifier
./vagrant_startup.sh: line 81: export: `qemu-kvm': not a valid identifier
./vagrant_startup.sh: line 81: export: `libvirt-dev': not a valid identifier
./vagrant_startup.sh: line 81: export: `bridge-utils': not a valid identifier
./vagrant_startup.sh: line 81: export: `libguestfs-tools': not a valid identifier
./vagrant_startup.sh: line 81: export: `virt-manager': not a valid identifier
./vagrant_startup.sh: line 81: export: `libvirt-bin': not a valid identifier
See comment inline for suggested fix.
Thanks for your review! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This patch fixes below issues.