]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
ts-host-install: Unconditionally mkdir -p /etc/udev/rules.d
authorIan Jackson <ian.jackson@eu.citrix.com>
Tue, 2 Apr 2019 14:50:29 +0000 (15:50 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Wed, 10 Apr 2019 14:14:15 +0000 (15:14 +0100)
We are going to want this directory to exist so that we can put a
canary in 70-persistent-net.rules.

In the cases where the behaviour of osstest changes, the empty
directory does not result in any overall change.

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

index f80a151c3a0daf3e056ee49ac7734da9839ffd81..7423eb9b0fca461cf64cac6296506318f15d81b9 100755 (executable)
@@ -198,6 +198,8 @@ sub setup_netboot_firstboot($) {
     my $persistent_net_rules =
        "$initrd_overlay.d/etc/udev/rules.d/70-persistent-net.rules";
 
+    system_checked(qw(mkdir -p --), "$initrd_overlay.d/etc/udev/rules.d");
+
     my $ipappend = 2;
     my $wantphysif= get_host_property($ho,'interface force','auto');
     logm("Forcing interface $wantphysif");
@@ -205,7 +207,6 @@ sub setup_netboot_firstboot($) {
        $ipappend = 0;
        die "need Ether for $ho->{Name} ($wantphysif)"
            unless defined $ho->{Ether};
-        system_checked(qw(mkdir -p --), "$initrd_overlay.d/etc/udev/rules.d");
        # ip(8) moved to /sbin in Jessie
        my $ipcmd = $ho->{Suite} =~ m/wheezy/ ? "/bin/ip" : "/sbin/ip";
         file_simple_write_contents