summaryrefslogtreecommitdiffstats
path: root/tools/templates
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-12-26 16:53:51 -0200
committerRenato Botelho <renato@netgate.com>2016-12-26 16:53:51 -0200
commitc01bdca9ba2ddfed14285ff36e1f6508c4452717 (patch)
tree43e72b67f3017395649765e4c540791c479012a4 /tools/templates
parentcded235bc212d63bf7777f3f1d085d6b3b5c1121 (diff)
downloadpfsense-c01bdca9ba2ddfed14285ff36e1f6508c4452717.zip
pfsense-c01bdca9ba2ddfed14285ff36e1f6508c4452717.tar.gz
Exclude /var/empty from tar extract and make sure its permissions are respected when it's created
Diffstat (limited to 'tools/templates')
-rw-r--r--tools/templates/core_pkg/base/metadir/+INSTALL3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/templates/core_pkg/base/metadir/+INSTALL b/tools/templates/core_pkg/base/metadir/+INSTALL
index 4f53a35..9dd50ee 100644
--- a/tools/templates/core_pkg/base/metadir/+INSTALL
+++ b/tools/templates/core_pkg/base/metadir/+INSTALL
@@ -27,7 +27,8 @@ chflags -R noschg \
echo "===> Extracting new base tarball"
# Install new base files
-tar -C / -xJPUf /usr/local/share/%%PRODUCT_NAME%%/base.txz
+tar -C / --exclude ./var/empty -xJPUf \
+ /usr/local/share/%%PRODUCT_NAME%%/base.txz
echo "===> Removing static obsoleted files"
OpenPOWER on IntegriCloud