mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-03-01 09:00:15 +01:00
* update amd64 base image to debian-12.6.0-amd64-netinst.iso * add resolvconf and nameservers for the amd64 build
14 lines
548 B
Bash
14 lines
548 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
|
|
|
|
# needed for resolvconf installed in build_sdcard.sh
|
|
apt-get install resolvconf -y
|
|
echo 'nameserver 1.1.1.1' >/etc/resolv.conf
|
|
echo 'nameserver 8.8.8.8' >>/etc/resolv.conf
|