]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
persistent-net: Add overlay in installer >= stretch
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 27 Nov 2018 14:33:41 +0000 (14:33 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 10 Apr 2019 14:14:15 +0000 (15:14 +0100)
We are going to need this in the installer so that the interface names
from the installer environment are captured so that they can be the
same on the host.

This prepares the ground for turning off net.ifnames.  The actual
rules are gated on net.ifnames so right now there is no change.

Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
ts-host-install

index 9ab3de62adf5800e47e36dc5ebf1dfbb2cf15d0f..8ea81e24a9c86c7d23e062709e705318624eaad9 100755 (executable)
@@ -188,6 +188,13 @@ sub setup_netboot_firstboot($) {
     system qw(rm -rf --),"$initrd_overlay.d";
     mkdir "$initrd_overlay.d" or die "$initrd_overlay.d: $!";
 
+    if ($ho->{Suite} !~ m/wheezy|jessie/) {
+       my @cmd = (qw(cp -dR overlay-persistent-net/.),
+                  "$initrd_overlay.d/.");
+       logm("using persistent-net-generator: @cmd");
+       system_checked @cmd;
+    }
+
     my $ipappend = 2;
     my $wantphysif= get_host_property($ho,'interface force','auto');
     logm("Forcing interface $wantphysif");