d-i preseed/include string ../common/preseed.cfg

d-i pkgsel/include string openssh-server build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common

d-i preseed/late_command string \
    in-target sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT="\(.*\)"/GRUB_CMDLINE_LINUX_DEFAULT="\1 net.ifnames=0 biosdevname=0"/g' /etc/default/grub; \
    in-target sed -i -e 's/\(enp0\|ens3\)[a-z0-9]\+/eth0/g' /etc/network/interfaces; \
    in-target update-grub;

d-i preseed/include string ../common/preseed.cfg

d-i pkgsel/include string openssh-server build-essential libssl-dev libreadline-dev zlib1g-dev linux-source dkms nfs-common

d-i preseed/late_command string \
    in-target sed -i -e 's/GRUB_CMDLINE_LINUX_DEFAULT="\(.*\)"/GRUB_CMDLINE_LINUX_DEFAULT="\1 net.ifnames=0 biosdevname=0"/g' /etc/default/grub; \
    in-target sed -i -e 's/\(enp0\|ens[0-9]\)[a-z0-9]\+/eth0/g' /etc/network/interfaces; \
    in-target update-grub;

Make sure that all the possibleinterface names are captured
Make sure that all the possibleinterface names are captured

Signed-off-by: Krzysztof Wilczyński <5f1c0be89013f8fde969a8dcb2fa1d522e94ee00@linux.com>
