macmule / AutoCasperNBI

AutoCasperNBI is an app that automates the creation of NetBoot Images (read: NBI’s) for use with Casper Imaging.
https://macmule.com/AutoCasperNBI/
83 stars 9 forks source link

Generate XPC Cache #105

Closed macmule closed 7 years ago

macmule commented 7 years ago
# if the tool exists (10.12 and earlier), create the xpc caches
if [ -x "${mountPoint}"/usr/libexec/xpccachectl ]; then
    if [ ! -e "${mountPoint}/System/Library/Caches/com.apple.xpc.extensions.cache" ]; then
        "${mountPoint}"/usr/libexec/xpccachectl --base "${mountPoint}"
        /bin/rm $debug_opt "${mountPoint}/var/db/.launchd_rebuild_caches"
    fi
fi