NetworkManager/src/initrd/tests
Beniamino Galvani 2c24b6b4b6
initrd: fix generating default BOOTIF= connection
There is a bug when parsing a BOOTIF= without any existing
connection. The generated connection doesn't have wired setting and
later we try to access it:

 # nm-initrd-generator --stdout -- BOOTIF=01-50-50-00-9f-21-21
  (nm-initrd-generator:1546): libnm-CRITICAL **: ((libnm-core/nm-setting-wired.c:205)): assertion '<dropped>' failed
  (nm-initrd-generator:1546): GLib-GObject-CRITICAL **: g_object_set: assertion 'G_IS_OBJECT (object)' failed

Fix this.

https://bugzilla.redhat.com/show_bug.cgi?id=1853277

Fixes: 25a2b6e14f ('initrd: rework command line parsing')
(cherry picked from commit 3023c70e4e)
(cherry picked from commit b8246ea367)
2020-08-28 10:19:16 +02:00
..
sysfs initrd: add iBFT reader 2018-09-18 17:40:47 +02:00
sysfs-bad-dns1 initrd: add iBFT reader 2018-09-18 17:40:47 +02:00
sysfs-bad-dns2 initrd: add iBFT reader 2018-09-18 17:40:47 +02:00
sysfs-bad-gateway initrd: add iBFT reader 2018-09-18 17:40:47 +02:00
sysfs-bad-ipaddr initrd: add iBFT reader 2018-09-18 17:40:47 +02:00
sysfs-dhcp initrd: add iBFT reader 2018-09-18 17:40:47 +02:00
sysfs-dt/firmware/devicetree/base initrd: add devicetree support 2019-09-10 11:04:51 +02:00
sysfs-dt-tftp/firmware/devicetree/base/chosen initrd: add devicetree support 2019-09-10 11:04:51 +02:00
sysfs-static initrd: add iBFT reader 2018-09-18 17:40:47 +02:00
sysfs-vlan initrd: add iBFT reader 2018-09-18 17:40:47 +02:00
meson.build license: Add license using SPDX identifiers to meson build files 2020-02-17 13:16:57 +01:00
test-cmdline-reader.c initrd: fix generating default BOOTIF= connection 2020-08-28 10:19:16 +02:00
test-dt-reader.c all: unify format of our Copyright source code comments 2019-10-02 17:03:52 +02:00
test-ibft-reader.c initrd/ibft-reader: don't set con.interface-name in iBFT connections 2020-01-14 16:43:26 +01:00