Re: autoinstall network question

2021-01-14 Thread Jerry Geis
Thanks - I never new the --- had that behavior.

Jerry

On Thu, Jan 14, 2021 at 5:55 PM Michael Hudson-Doyle <
michael.hud...@canonical.com> wrote:

>
>
> On Fri, 15 Jan 2021 at 02:23, Jerry Geis  wrote:
>
>>
>>
>> On Thu, Jan 14, 2021 at 7:42 AM Jerry Geis  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.
>>
>
> It will if you put it after the --- characters.
>
> Cheers,
> mwh
>
>
>> 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
>> --
>> Ubuntu-devel-discuss mailing list
>> Ubuntu-devel-discuss@lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>>
>
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: autoinstall network question

2021-01-14 Thread Michael Hudson-Doyle
On Fri, 15 Jan 2021 at 02:23, Jerry Geis  wrote:

>
>
> On Thu, Jan 14, 2021 at 7:42 AM Jerry Geis  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.
>

It will if you put it after the --- characters.

Cheers,
mwh


> 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
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss@lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss
>
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: autoinstall network question

2021-01-14 Thread Jerry Geis
On Thu, Jan 14, 2021 at 7:42 AM Jerry Geis  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
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss