From 3ed2f704eb1b0fd08d405282b993245d645ce28c Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Thu, 27 Sep 2018 21:59:28 +0200 Subject: [PATCH] Change ip for rc.local in setup guide The ip for the host changed in the pyhton build scripts. Reflect this change in the docs now. --- gitian-building/gitian-building-setup-gitian-debian.md | 4 ++-- gitian-building/gitian-building-setup-gitian-fedora.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gitian-building/gitian-building-setup-gitian-debian.md b/gitian-building/gitian-building-setup-gitian-debian.md index b8f032e..9aaa6d2 100644 --- a/gitian-building/gitian-building-setup-gitian-debian.md +++ b/gitian-building/gitian-building-setup-gitian-debian.md @@ -29,7 +29,7 @@ echo "%sudo ALL=NOPASSWD: /usr/bin/lxc-execute" >> /etc/sudoers.d/gitian-lxc # make /etc/rc.local script that sets up bridge between guest and host echo '#!/bin/sh -e' > /etc/rc.local echo 'brctl addbr br0' >> /etc/rc.local -echo 'ip addr add 10.0.3.2/24 broadcast 10.0.3.255 dev br0' >> /etc/rc.local +echo 'ip addr add 10.0.3.1/24 broadcast 10.0.3.255 dev br0' >> /etc/rc.local echo 'ip link set br0 up' >> /etc/rc.local echo 'firewall-cmd --zone=trusted --add-interface=br0' >> /etc/rc.local echo 'exit 0' >> /etc/rc.local @@ -37,7 +37,7 @@ chmod +x /etc/rc.local # make sure that USE_LXC is always set when logging in as gitianuser, # and configure LXC IP addresses echo 'export USE_LXC=1' >> /home/gitianuser/.profile -echo 'export GITIAN_HOST_IP=10.0.3.2' >> /home/gitianuser/.profile +echo 'export GITIAN_HOST_IP=10.0.3.1' >> /home/gitianuser/.profile echo 'export LXC_GUEST_IP=10.0.3.5' >> /home/gitianuser/.profile reboot ``` diff --git a/gitian-building/gitian-building-setup-gitian-fedora.md b/gitian-building/gitian-building-setup-gitian-fedora.md index e4d6dc5..6997bbd 100644 --- a/gitian-building/gitian-building-setup-gitian-fedora.md +++ b/gitian-building/gitian-building-setup-gitian-fedora.md @@ -31,7 +31,7 @@ echo "%wheel ALL=NOPASSWD: /usr/bin/lxc-execute" >> /etc/sudoers.d/gitian-lxc # make /etc/rc.d/rc.local script that sets up bridge between guest and host echo '#!/bin/sh -e' > /etc/rc.d/rc.local echo 'brctl addbr br0' >> /etc/rc.d/rc.local -echo 'ip addr add 10.0.3.2/24 broadcast 10.0.3.255 dev br0' >> /etc/rc.d/rc.local +echo 'ip addr add 10.0.3.1/24 broadcast 10.0.3.255 dev br0' >> /etc/rc.d/rc.local echo 'ip link set br0 up' >> /etc/rc.d/rc.local echo 'firewall-cmd --zone=trusted --add-interface=br0' >> /etc/rc.d/rc.local echo 'exit 0' >> /etc/rc.d/rc.local @@ -41,7 +41,7 @@ chmod +x /etc/rc.d/rc.local # make sure that USE_LXC is always set when logging in as gitianuser, # and configure LXC IP addresses echo 'export USE_LXC=1' >> /home/gitianuser/.bash_profile -echo 'export GITIAN_HOST_IP=10.0.3.2' >> /home/gitianuser/.bash_profile +echo 'export GITIAN_HOST_IP=10.0.3.1' >> /home/gitianuser/.bash_profile echo 'export LXC_GUEST_IP=10.0.3.5' >> /home/gitianuser/.bash_profile reboot ```