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>
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");