diff --git a/templates/ntp/INSTALL b/templates/ntp/INSTALL index 2272d605c4c..abeba724e39 100644 --- a/templates/ntp/INSTALL +++ b/templates/ntp/INSTALL @@ -20,5 +20,11 @@ post) [ $? -ne 0 ] && exit $? echo "Created ntpd system user." fi + + # Fix ntpd initialization with -i (chrooted). + if [ ! -d var/chroot/ntpd/var/db ]; then + mkdir -p var/chroot/ntpd/var/db + chown ntpd:ntpd /var/chroot/ntpd/var/db + fi ;; esac