Preseed install leads to broken DNS with trisquel-netinst_11.0-20221225_amd64.iso
Hi. I'm not sure this is the right package to report this to, please reassign if needed/possible. DNS settings for a netinst preseed install, that works fine for both Trisquel 9 and Trisquel 10, breaks with Trisquel 11. The reason seems to be that on Trisquel it ends up storing the network configuration in /etc/network/interfaces instead of /etc/netplan/01-netcfg.yaml which it does properly on Trisquel 10. On startup, the network interface settings are set properly from /etc/network/interface on Trisquel 11, but the DNS setting is never set. Shouldn't Trisquel 11 use netplan configs, like Trisquel 9 and 10? What causes this netinst image to use the old way?
A Trisquel 10 system has the following in /etc/netplan/01-netcfg.yaml and nothing in /etc/network/interfaces.
root@foo:~# cat /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
addresses: [ 192.168.10.197/24 ]
gateway4: 192.168.10.46
nameservers:
search: [ sjd.se ]
addresses:
- "192.168.10.46"
root@foo:~#
A Trisquel 11 system has the following in /etc/network/interfaces and nothing in /etc/netplan/*.
root@foo:~# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug enp1s0
iface enp1s0 inet static
address 192.168.10.197/24
gateway 192.168.10.46
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.10.46
dns-search sjd.se
root@foo:~#
For a writeup on how to reproduce, see: https://blog.josefsson.org/2022/12/30/preseeding-trisquel-virtual-machines-using-netinst-images/
Thanks, Simon