From: Ian Jackson Date: Tue, 2 Apr 2019 14:50:29 +0000 (+0100) Subject: ts-host-install: Unconditionally mkdir -p /etc/udev/rules.d X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ffb33b665d3202dd9d971e12c8dcec8047d82b25;p=people%2Fiwj%2Fosstest.git ts-host-install: Unconditionally mkdir -p /etc/udev/rules.d 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 --- diff --git a/ts-host-install b/ts-host-install index f80a151c..7423eb9b 100755 --- a/ts-host-install +++ b/ts-host-install @@ -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