Hello, here a vagrant answer:
By default the scripts are run as root, so this is not required: sudo su what you can use to test the script is vagrant ssh -c "sudo su -" that will get you in a shell as root here you can run bash /vagrant/script.sh if you have the script in the directory where the Vagrantfile is. You need to make your script silent. Some commands can be run with -y that will give a "Yes" to any question some other commands/scripts can be run like this command << EOF Y EOF that will pass Y to the command, and then came back to the console more comple stuff can be done with command expect Now a different approach: I think will be too much trouble configure the base box like this.. can you check www.packer.io that create base boxes, starting from an iso or a previous vm, so you can end your very own custom box, tailored for your own needs. Alvaro. -- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
