Merge pull request #295 from devimc/topic/rootfs/fixChrony

rootfs-builder: fix chrony service
This commit is contained in:
GabyCT
2019-05-22 11:33:23 -05:00
committed by GitHub

View File

@@ -381,6 +381,10 @@ pushd "${ROOTFS_DIR}" >> /dev/null
if [ "$PWD" != "/" ] ; then
rm -rf ./var/cache/ ./var/lib ./var/log
fi
info "Create symlink to /tmp in /var to create private temporal directories with systemd"
rm -rf ./var/tmp
ln -s ../tmp ./var/
popd >> /dev/null
[ -n "${KERNEL_MODULES_DIR}" ] && copy_kernel_modules ${KERNEL_MODULES_DIR} ${ROOTFS_DIR}