update ifup interfaces

This commit is contained in:
terem42
2023-04-21 22:26:52 +02:00
parent b0cd9a02ae
commit af26f6a988
2 changed files with 18 additions and 0 deletions

View File

@@ -815,6 +815,15 @@ ip route add 172.31.1.1/255.255.255.255 dev eth0
ip route add default via 172.31.1.1 dev eth0
CONF
cat > "$c_zfs_mount_dir/etc/network/interfaces" <<'CONF'
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
CONF
chmod 755 "$c_zfs_mount_dir/etc/network/interfaces"
echo "======= update initramfs =========="
chroot_execute "update-initramfs -u -k all"

View File

@@ -820,6 +820,15 @@ CONF
chmod 755 "$c_zfs_mount_dir/usr/share/initramfs-tools/scripts/init-premount/static-route"
cat > "$c_zfs_mount_dir/etc/network/interfaces" <<'CONF'
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
CONF
chmod 755 "$c_zfs_mount_dir/etc/network/interfaces"
echo "======= update initramfs =========="
chroot_execute "update-initramfs -u -k all"