From f41c3331cbff4bad7806f4503fc267ca61cfcc4d Mon Sep 17 00:00:00 2001 From: James Slagle Date: Thu, 18 Sep 2014 20:13:17 -0400 Subject: [PATCH] Ensure /tftpboot dir exists before running restorecon --- .../install.d/discovery-dhcp-source-install/50-discovery-dhcp | 1 + 1 file changed, 1 insertion(+) diff --git a/elements/discovery-dhcp/install.d/discovery-dhcp-source-install/50-discovery-dhcp b/elements/discovery-dhcp/install.d/discovery-dhcp-source-install/50-discovery-dhcp index f667fd107..62e690874 100755 --- a/elements/discovery-dhcp/install.d/discovery-dhcp-source-install/50-discovery-dhcp +++ b/elements/discovery-dhcp/install.d/discovery-dhcp-source-install/50-discovery-dhcp @@ -9,6 +9,7 @@ set -eux install-packages dnsmasq dnsmasq-utils # make sure tftpboot is labelled correctly +mkdir -p /tftpboot restorecon -R /tftpboot cat > /lib/systemd/system/discovery-dhcp-dnsmasq.service << eof [Unit]