diff mbox

[OSSTEST,09/16] ts-host-install: don't use the new nic naming scheme

Message ID 20171020103840.32762-10-wei.liu2@citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Wei Liu Oct. 20, 2017, 10:38 a.m. UTC
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
---
 ts-host-install | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Ian Jackson Oct. 20, 2017, 10:58 a.m. UTC | #1
Wei Liu writes ("[OSSTEST PATCH 09/16] ts-host-install: don't use the new nic naming scheme"):
> Signed-off-by: Wei Liu <wei.liu2@citrix.com>

Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
diff mbox

Patch

diff --git a/ts-host-install b/ts-host-install
index 20b8a60..530bc5c 100755
--- a/ts-host-install
+++ b/ts-host-install
@@ -271,6 +271,10 @@  END
     # why this is repeated.
     push @hocmdline, "console=$console" unless $console eq "NONE";
 
+    # Don't use "Predictable Network Interface Names"
+    # https://www.freedesktop.org/wiki/Software/systemd/PredictableNetworkInterfaceNames/
+    push @hocmdline, "net.ifnames=0" if $ho->{Suite} =~ m/stretch/;
+
     push @hocmdline,
         get_host_property($ho, "linux-boot-append $ho->{Suite}", ''),
         get_host_property($ho, "linux-boot-append $ho->{Suite} $r{arch}", '');