joininbox/ci/amd64/debian/scripts/networking.sh
openoms 890f702c04
add amd64 image build (#104)
* add amd64 image build
* add bootstrap.service to always prepare ssh
* add Makefile
* pass GITHUB_ACTOR GITHUB_HEAD_REF to the build
* download the build script from PR branch
* output amd64 images to ci/amd64/builds
2022-12-06 23:14:06 +00:00

9 lines
379 B
Bash

#!/bin/sh -eux
# Disable Predictable Network Interface names and use eth0
sed -i 's/en[[:alnum:]]*/eth0/g' /etc/network/interfaces;
sed -i 's/GRUB_CMDLINE_LINUX="\(.*\)"/GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0 \1"/g' /etc/default/grub;
update-grub;
# Adding a 2 sec delay to the interface up, to make the dhclient happy
echo "pre-up sleep 2" >> /etc/network/interfaces