mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-02 17:55:46 +02:00
import libvirt box
`packer` build `provider` is not consistent at this time. type qemu builder in the current packer config reports provider as `libvirt`
This commit is contained in:
parent
b0eaed0ae8
commit
d987936b99
3
build.sh
3
build.sh
|
@ -173,6 +173,9 @@ for provider in $providers; do
|
||||||
echo "NOTE: If you are having issues, try starting over by doing 'vagrant destroy' and then 'vagrant up'."
|
echo "NOTE: If you are having issues, try starting over by doing 'vagrant destroy' and then 'vagrant up'."
|
||||||
else
|
else
|
||||||
if [ -z $box_import ]; then
|
if [ -z $box_import ]; then
|
||||||
|
if [ $provider = "qemu" ]; then
|
||||||
|
provider="libvirt"
|
||||||
|
fi
|
||||||
if vagrant box add $packer_build_path/"$os_full"_"$provider"_"$box_version".box --name rapid7/metasploitable3-$os_short; then
|
if vagrant box add $packer_build_path/"$os_full"_"$provider"_"$box_version".box --name rapid7/metasploitable3-$os_short; then
|
||||||
echo "Box successfully added to Vagrant."
|
echo "Box successfully added to Vagrant."
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user