Add optional configuration knob NANO_CUST_FILES_MTREE. If set, it will
require an entry in custom mtree definition for every custom installed file. Obtained from: Netflix
This commit is contained in:
parent
6a05f063ed
commit
8e7676ca32
@ -52,6 +52,11 @@ NANO_PACKAGE_LIST="*"
|
|||||||
# where package metadata gets placed
|
# where package metadata gets placed
|
||||||
NANO_PKG_META_BASE=/var/db
|
NANO_PKG_META_BASE=/var/db
|
||||||
|
|
||||||
|
# Path to mtree file to apply to anything copied by cust_install_files().
|
||||||
|
# If you specify this, the mtree file *must* have an entry for every file and
|
||||||
|
# directory located in Files.
|
||||||
|
#NANO_CUST_FILES_MTREE=""
|
||||||
|
|
||||||
# Object tree directory
|
# Object tree directory
|
||||||
# default is subdir of /usr/obj
|
# default is subdir of /usr/obj
|
||||||
#NANO_OBJ=""
|
#NANO_OBJ=""
|
||||||
@ -909,6 +914,10 @@ cust_allow_ssh_root ( ) (
|
|||||||
cust_install_files ( ) (
|
cust_install_files ( ) (
|
||||||
cd "${NANO_TOOLS}/Files"
|
cd "${NANO_TOOLS}/Files"
|
||||||
find . -print | grep -Ev '/(CVS|\.svn|\.hg|\.git)' | cpio -Ldumpv ${NANO_WORLDDIR}
|
find . -print | grep -Ev '/(CVS|\.svn|\.hg|\.git)' | cpio -Ldumpv ${NANO_WORLDDIR}
|
||||||
|
|
||||||
|
if [ -f ${NANO_CUST_FILES_MTREE} ]; then
|
||||||
|
CR "mtree -eiU -p /" <${NANO_CUST_FILES_MTREE}
|
||||||
|
fi
|
||||||
)
|
)
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user