build: exclude /var from mtree file
/var MFS kills all of the files and it's extremely difficult to construct a safe health check around the fact that they can be missing.
This commit is contained in:
parent
63a9defcd8
commit
bbd3e45d62
|
@ -495,9 +495,12 @@ setup_version()
|
|||
echo ${REPO_VERSION}-${PRODUCT_ARCH} > ${VERSIONDIR}/${3}
|
||||
|
||||
# mtree generation must come LAST
|
||||
mtree -c -k uid,gid,mode,size,sha256digest -p ${2} > ${1}/mtree
|
||||
echo "./var" > ${1}/mtree.exclude
|
||||
mtree -c -k uid,gid,mode,size,sha256digest -p ${2} \
|
||||
-X ${1}/mtree.exclude > ${1}/mtree
|
||||
mv ${1}/mtree ${VERSIONDIR}/${3}.mtree
|
||||
chmod 600 ${VERSIONDIR}/${3}.mtree
|
||||
rm ${1}/mtree.exclude
|
||||
|
||||
# for testing, custom builds, etc.
|
||||
#touch ${VERSIONDIR}/${3}.lock
|
||||
|
|
Loading…
Reference in New Issue