Vagrant - sendfile python3.5 debian-stretch (#12454)
* vagrant dev - force hass-AIOHTTP to not use sendfile Ref: https://www.virtualbox.org/ticket/9069 strongly needed for `home-assistant-polymer` * vagrant dev - python 3.4 to 3.5 by upgrade to debian-stretch
This commit is contained in:
parent
0e2d98dbf5
commit
facd833e6d
3 changed files with 5 additions and 2 deletions
2
virtualization/vagrant/Vagrantfile
vendored
2
virtualization/vagrant/Vagrantfile
vendored
|
@ -2,7 +2,7 @@
|
|||
# vi: set ft=ruby :
|
||||
|
||||
Vagrant.configure(2) do |config|
|
||||
config.vm.box = "debian/contrib-jessie64"
|
||||
config.vm.box = "debian/contrib-stretch64"
|
||||
config.vm.synced_folder "../../", "/home-assistant"
|
||||
config.vm.synced_folder "./config", "/root/.homeassistant"
|
||||
config.vm.network "forwarded_port", guest: 8123, host: 8123
|
||||
|
|
|
@ -16,5 +16,8 @@ ExecStart=/usr/bin/hass --runner
|
|||
SendSIGKILL=no
|
||||
RestartForceExitStatus=100
|
||||
|
||||
# on vagrant (vboxfs), disable sendfile https://www.virtualbox.org/ticket/9069
|
||||
Environment=AIOHTTP_NOSENDFILE=1
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -105,7 +105,7 @@ main() {
|
|||
vagrant up --provision; exit ;;
|
||||
esac
|
||||
# ...otherwise we assume it's the Vagrant provisioner
|
||||
if [ $(hostname) != "contrib-jessie" ]; then usage; exit; fi
|
||||
if [ $(hostname) != "contrib-jessie" ] && [ $(hostname) != "contrib-stretch" ]; then usage; exit; fi
|
||||
if ! [ -f $SETUP_DONE ]; then setup; fi
|
||||
if [ -f $RESTART ]; then restart; fi
|
||||
if [ -f $RUN_TESTS ]; then run_tests; fi
|
||||
|
|
Loading…
Add table
Reference in a new issue