NetworkManager/src/initrd/tests
Beniamino Galvani 25a2b6e14f initrd: rework command line parsing
The 'default_connection' created by the command line parser has
multiple purposes. It's the connection created for 'ip=' arguments
without command line, but is also created when there is a 'bootdev='
or for 'nameserver=' and no other connection exists at the moment the
argument is parsed. This is confusing and leads to a result that
depends on the order of parameters. For example:

 $ /usr/libexec/nm-initrd-generator -c connections -- bootdev=eth1 ip=eth0:dhcp
 $ ls connections/
 default_connection.nmconnection  eth0.nmconnection

 $ /usr/libexec/nm-initrd-generator -c connections -- ip=eth0:dhcp  bootdev=eth1
 $ ls connections/
 eth0.nmconnection  eth1.nmconnection

Make this more explicit by tracking 'bootdev_connection' and
'default_connection' individually.

Also fix handling of 'nameserver', 'rd.peerdns' and 'rd.route'
arguments. First process all connections, and then set those
properties. In particular, now nameservers are applied to all
connections.

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/391
2020-03-26 22:03:56 +01: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 meson: Improve the src build file 2019-10-01 09:49:33 +02:00
test-cmdline-reader.c initrd: rework command line parsing 2020-03-26 22:03:56 +01: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