1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

remove workarounds for august stretch bugs (#233)

This commit is contained in:
georgejhunt 2017-09-11 09:18:12 -07:00 committed by GitHub
parent 58f078da43
commit 17ae885dea
2 changed files with 0 additions and 26 deletions

View file

@ -58,21 +58,6 @@ if [ ! -f /etc/ansible/facts.d/local_facts.fact ]; then
fi
cp ./scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
# raspbian-9 changes network interface names to include mac address
# which defeats copying an image from one SD card to another
raspbian_ver=`./scripts/local_facts.fact|grep os_ver|awk -F '"' '{print $4}'`
if [ "$raspbian_ver" == "raspbian-9" ]; then
grep net.ifnames=0 /boot/cmdline.txt
if [ $? -ne 0 ]; then
sed -i -r 's/deadline +fsck/deadline net.ifnames=0 fsck/' /boot/cmdline.txt
echo
echo "Kernel cmdline changed. Will now reboot so that network interface names will"
echo " be same for all raspberry pi\'s. Hit enter, and then restart this script"
read var
reboot
fi
fi
PLAYBOOK="iiab.yml"
INVENTORY="ansible_hosts"
CWD=`pwd`