Skip to content
Snippets Groups Projects
Commit cb451fe7 authored by Lars Seipel's avatar Lars Seipel
Browse files

runner/libvirt: fix udev-based interface renaming

The Cumulus QCOW2 images contain an init script that renames
network interfaces. This appears to mess with our injected
udev rules. Delete it and everything starts to work.
parent 95537196
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,9 @@ func customizeDomain(ctx context.Context, uri string, d *device, extraCommands i ...@@ -34,6 +34,9 @@ func customizeDomain(ctx context.Context, uri string, d *device, extraCommands i
"-c", uri, "-c", uri,
"--hostname", d.topoDev.Name, "--hostname", d.topoDev.Name,
"--timezone", "Etc/UTC", "--timezone", "Etc/UTC",
// This rename script basically does s/eth/swp/ and breaks
// proper interface naming using udev rules. Delete it.
"--delete", "/etc/hw_init.d/S10rename_eth_swp.sh",
"--write", "/etc/udev/rules.d/70-persistent-net.rules:"+string(rules), "--write", "/etc/udev/rules.d/70-persistent-net.rules:"+string(rules),
"--commands-from-file", "/dev/stdin", "--commands-from-file", "/dev/stdin",
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment