]> xenbits.xensource.com Git - osstest.git/commit
preseed_base, ts-host-install: Change NIC NamePolicy to "mac"
authorAnthony PERARD <anthony.perard@citrix.com>
Wed, 25 Oct 2023 16:18:31 +0000 (17:18 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 28 Mar 2024 16:51:52 +0000 (16:51 +0000)
commit367166c3232958fb5cfa4beb2555f6055d193c1a
treedcf3532b85a1e3f74b35554addaecfd017026257
parente172345dc1608e313ae8d952f3323df21c1e55b2
preseed_base, ts-host-install: Change NIC NamePolicy to "mac"

On "italia?" machine, the two network interfaces are competing to have
"eno1", base on the "onboard" naming policy. So the name of the
network interface can change between "eno1" and "eth0".

Switching to "mac" should avoid the unpredictable name based on
"onboard" or "slot" policy.

The "mac" naming policy break `vif-bridge` for the "vif*.*" network
interfaces. So we will avoid the "mac" policy if the driver is "vif".
This also have an impact on guest created with ./ts-debian-install, as
they use the initrd from dom0, so the interface in the guest will be
renamed according to default policy (which rename eth0 to enX0).

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Osstest/Debian.pm
ts-host-install