]> xenbits.xensource.com Git - 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)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 10 Apr 2019 14:02:41 +0000 (15:02 +0100)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-host-install

index 292733ba63a053c51ad7478773849d6582addfe0..9ab3de62adf5800e47e36dc5ebf1dfbb2cf15d0f 100755 (executable)
@@ -244,6 +244,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}", '');