/etc/netplan/50-cloud-init.yaml too specific

Bug #2066886 reported by Heinrich Schuchardt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
subiquity (Ubuntu)
New
Undecided
Unassigned

Bug Description

When installing a virtual machine with the live-installer it created /etc/netplan/50-cloud-init.yaml with

network:
    ethernets:
        enp0s6:
            dhcp4: true
    version: 2

When I rebooted I had a device enp0s4 and no network.

Wouldn't it be preferable to write a less restrictive 50-cloud-init.yaml which encompasses all Ethernet devices and marks them as optional:

network:
    version: 2
    ethernets:
        all-en:
            match:
                name: "en*"
            dhcp4: true
            optional: true

Revision history for this message
Heinrich Schuchardt (xypron) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.