This commit is contained in:
sean
2019-07-15 16:15:46 -07:00
parent 81ed906d7f
commit a679eacab8
+3 -3
View File
@@ -273,10 +273,10 @@ echo "Writing network interfaces file..." >> /mnt/setup-chroot.sh
macaddr=$(echo $hostname|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/') macaddr=$(echo $hostname|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/')
mkdir -p /mnt/etc/network && mkdir -p /mnt/etc/network/interfaces.d mkdir -p /mnt/etc/network && mkdir -p /mnt/etc/network/interfaces.d
echo "auto lo br0" > /mnt/etc/network/interfaces.d/br0 echo "auto lo br0" > /mnt/etc/network/interfaces.d/br0
echo "iface lo inet loopback" >> /etc/network/interfaces.d/br0 echo "iface lo inet loopback" >> /mnt/etc/network/interfaces.d/br0
niclist="" niclist=""
for nic in "$nics"; do for nic in "$nics"; do
echo "iface ${nic} inet manual" >> /etc/network/interfaces.d/br0 echo "iface ${nic} inet manual" >> /mnt/etc/network/interfaces.d/br0
niclist="$niclist $nic" niclist="$niclist $nic"
done done
echo "iface br0 inet dhcp" >> /mnt/etc/network/interfaces.d/br0 echo "iface br0 inet dhcp" >> /mnt/etc/network/interfaces.d/br0
@@ -464,7 +464,7 @@ if ! [ "$?" = "0" ]; then
exit $? exit $?
fi fi
#exit 0 exit 0
# commented out for debugging # commented out for debugging
echo "" echo ""
echo "Clearing chroot configuration script..." echo "Clearing chroot configuration script..."