summaryrefslogtreecommitdiffstats
path: root/openpower/package/petitboot/petitboot.mk
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-20 11:14:40 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-04-20 16:23:21 +1000
commit0cd255911e4f55150e96dfdb422af3ecb2da087b (patch)
tree02c585d7a7c9a52872ee23588e6637042514d8ec /openpower/package/petitboot/petitboot.mk
parentb1491660ba209e56db0f6b5fc89f647a39696752 (diff)
downloadtalos-op-build-0cd255911e4f55150e96dfdb422af3ecb2da087b.tar.gz
talos-op-build-0cd255911e4f55150e96dfdb422af3ecb2da087b.zip
petitboot: Create default log directory
With recent changes to Skiroot the petitboot-nc processes can start before the pb-discover server. In this case /var/log/petitboot hasn't been created by S15pb-discover yet, and each interface will fail to fopen() its respective log file. This means each petitboot-nc process will not produce logs the first time it is run. Create the directory at build time to make sure we always get UI logs. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'openpower/package/petitboot/petitboot.mk')
-rw-r--r--openpower/package/petitboot/petitboot.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpower/package/petitboot/petitboot.mk b/openpower/package/petitboot/petitboot.mk
index 934eb8de..03140da5 100644
--- a/openpower/package/petitboot/petitboot.mk
+++ b/openpower/package/petitboot/petitboot.mk
@@ -67,6 +67,8 @@ define PETITBOOT_POST_INSTALL
ln -sf /usr/sbin/pb-udhcpc \
$(TARGET_DIR)/usr/share/udhcpc/default.script.d/
+ mkdir -p $(TARGET_DIR)/var/log/petitboot
+
$(MAKE) -C $(@D)/po DESTDIR=$(TARGET_DIR) install
endef
OpenPOWER on IntegriCloud