V8.00.000.2025.06.17
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -83,8 +83,6 @@ installation_network() {
|
||||
# This file describes the network interfaces available on your system
|
||||
# and how to activate them. For more information, see interfaces(5).
|
||||
|
||||
source-directory /etc/network/interfaces.d
|
||||
|
||||
# The loopback network interface
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
@@ -99,9 +97,7 @@ EOF
|
||||
|
||||
cat << EOF >> "${TARGET}/etc/network/interfaces"
|
||||
# The primary network interface: IPv4 via DHCP
|
||||
auto ${VAR_FINAL_NIC}
|
||||
allow-hotplug ${VAR_FINAL_NIC}
|
||||
|
||||
iface ${VAR_FINAL_NIC} inet dhcp
|
||||
|
||||
EOF
|
||||
@@ -111,9 +107,7 @@ EOF
|
||||
|
||||
cat << EOF >> "${TARGET}/etc/network/interfaces"
|
||||
# The primary network interface: IPv4 via DHCP
|
||||
auto ${VAR_FINAL_NIC}
|
||||
allow-hotplug ${VAR_FINAL_NIC}
|
||||
|
||||
iface ${VAR_FINAL_NIC} inet dhcp
|
||||
|
||||
EOF
|
||||
@@ -125,9 +119,7 @@ EOF
|
||||
|
||||
cat << EOF >> "${TARGET}/etc/network/interfaces"
|
||||
# The primary network interface: IPv4 via static IP
|
||||
auto ${VAR_FINAL_NIC}
|
||||
allow-hotplug ${VAR_FINAL_NIC}
|
||||
|
||||
iface ${VAR_FINAL_NIC} inet static
|
||||
address ${VAR_FINAL_IPV4}
|
||||
netmask ${VAR_FINAL_IPV4_SUBNET}
|
||||
@@ -176,6 +168,9 @@ EOF
|
||||
insert_header "${TARGET}/etc/dhcpcd.conf"
|
||||
insert_comments "${TARGET}/etc/dhcpcd.conf"
|
||||
cat << 'EOF' >> "${TARGET}/etc/dhcpcd.conf"
|
||||
### No Global APIPA-Fallback
|
||||
noipv4ll
|
||||
|
||||
### A ServerID is required by RFC2131.
|
||||
require dhcp_server_identifier
|
||||
|
||||
|
||||
Reference in New Issue
Block a user