mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-11-19 10:28:58 +01:00
* resolvconf installation isolation * chore: Add nameserver 8.8.8.8 to resolv.conf during SD card build * manual /etc/resolv.conf update before apt-get installs --------- Co-authored-by: rootzoll <christian@geektank.de>
This commit is contained in:
committed by
GitHub
parent
ae7799b750
commit
2ab1c9a86f
@@ -345,6 +345,8 @@ done
|
|||||||
apt-get clean -y
|
apt-get clean -y
|
||||||
apt-get autoremove -y
|
apt-get autoremove -y
|
||||||
|
|
||||||
|
grep -q "^nameserver 8.8.8.8$" /etc/resolv.conf || echo "nameserver 8.8.8.8" >> /etc/resolv.conf
|
||||||
|
|
||||||
echo -e "\n*** UPDATE Debian***"
|
echo -e "\n*** UPDATE Debian***"
|
||||||
apt-get update -y
|
apt-get update -y
|
||||||
apt-get upgrade -f -y
|
apt-get upgrade -f -y
|
||||||
@@ -369,7 +371,7 @@ echo -e "\n*** SOFTWARE UPDATE ***"
|
|||||||
# sqlite3 -> database
|
# sqlite3 -> database
|
||||||
# fdisk -> create partitions
|
# fdisk -> create partitions
|
||||||
# lsb-release -> needed to know which distro version we're running to add APT sources
|
# lsb-release -> needed to know which distro version we're running to add APT sources
|
||||||
general_utils="sudo policykit-1 htop git curl bash-completion vim jq dphys-swapfile bsdmainutils autossh telnet vnstat parted dosfstools fbi sysbench build-essential dialog bc python3-dialog unzip whois fdisk lsb-release smartmontools rsyslog resolvconf"
|
general_utils="sudo policykit-1 htop git curl bash-completion vim jq dphys-swapfile bsdmainutils autossh telnet vnstat parted dosfstools fbi sysbench build-essential dialog bc python3-dialog unzip whois fdisk lsb-release smartmontools rsyslog"
|
||||||
# add btrfs-progs if not bookworm on aarch64
|
# add btrfs-progs if not bookworm on aarch64
|
||||||
[ "${architecture}" = "aarch64" ] && ! grep "12 (bookworm)" < /etc/os-release && general_utils="${general_utils} btrfs-progs"
|
[ "${architecture}" = "aarch64" ] && ! grep "12 (bookworm)" < /etc/os-release && general_utils="${general_utils} btrfs-progs"
|
||||||
# python3-mako --> https://github.com/rootzoll/raspiblitz/issues/3441
|
# python3-mako --> https://github.com/rootzoll/raspiblitz/issues/3441
|
||||||
@@ -378,6 +380,8 @@ server_utils="rsync net-tools xxd netcat-openbsd openssh-client openssh-sftp-ser
|
|||||||
[ "${baseimage}" = "armbian" ] && armbian_dependencies="armbian-config" # add armbian-config
|
[ "${baseimage}" = "armbian" ] && armbian_dependencies="armbian-config" # add armbian-config
|
||||||
[ "${architecture}" = "amd64" ] && amd64_dependencies="network-manager" # add amd64 dependency
|
[ "${architecture}" = "amd64" ] && amd64_dependencies="network-manager" # add amd64 dependency
|
||||||
|
|
||||||
|
apt_install resolvconf
|
||||||
|
resolvconf -u
|
||||||
apt_install ${general_utils} ${python_dependencies} ${server_utils} ${amd64_dependencies} ${armbian_dependencies}
|
apt_install ${general_utils} ${python_dependencies} ${server_utils} ${amd64_dependencies} ${armbian_dependencies}
|
||||||
apt-get clean -y
|
apt-get clean -y
|
||||||
apt-get autoremove -y
|
apt-get autoremove -y
|
||||||
|
|||||||
Reference in New Issue
Block a user