]> xenbits.xensource.com Git - people/liuw/osstest.git/commitdiff
ts-host-install: don't use the new nic naming scheme
authorWei Liu <wei.liu2@citrix.com>
Thu, 12 Oct 2017 10:01:36 +0000 (11:01 +0100)
committerWei Liu <wei.liu2@citrix.com>
Mon, 7 May 2018 12:51:27 +0000 (13:51 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-host-install

index c5b92b8d097f8522e147b4d965ad5ffba36a1b24..1d315d83252635d83c21af7d71a78a94c2b90a68 100755 (executable)
@@ -249,6 +249,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}", '');