autoinstall network question

Jerry Geis jerry.geis at gmail.com
Thu Jan 14 13:22:34 UTC 2021


On Thu, Jan 14, 2021 at 7:42 AM Jerry Geis <jerry.geis at gmail.com> wrote:

> On my boot line for append I have biosdevname=0 net.ifnames=0 (using 20.04
> LTS).
> append  initrd=/casper/initrd debian-installer/local=en_US autoinstall
> ds=nocloud;s=/cdrom/          quiet splash biosdevname=0 net.ifnames=0 ---
>
> After the auto install I have no network.
>
>  network:
>     network:
>       version: 2
>       ethernets:
>         eth0:
>           dhcp4: yes
>           dhcp-identifier: mac
>
> This is my network section.
>
> So now I do "dmesg | grep eth" and it says enp1s0 is the network.
> Why is that ? I told the kernel to use eth0 type names ?
>
> Jerry
>


Ok - so I discovered that while I boot autoinstall with the "biosdevname=0
net.ifnames=0" - this does NOT - automatically get set during the install
and then reboot.
If I login and manually add them to the /etc/default/grug file and reboot
it works.  So question then is how do my "late-commands" - update the
/etc/default/grub ?

I found an example where it using /target and curtin in-target --target
/target update-grub - - --- WOW - can I not do "chroot /target" and just
have normal commands ?

Jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20210114/2dd4e3f6/attachment.html>


More information about the Ubuntu-devel-discuss mailing list