[oe] [PATCH 1/1 v3][meta-networking] ntp: fix path to drift file

Martin Jansa martin.jansa at gmail.com
Mon Oct 13 12:45:10 UTC 2014


On Mon, Oct 13, 2014 at 07:38:03AM -0500, Peter A. Bigot wrote:
> On 10/13/2014 01:17 AM, wenzong.fan at windriver.com wrote:
> > From: Wenzong Fan <wenzong.fan at windriver.com>
> >
> > The default path of ntp drift file is /etc/ntp.drift, ntp daemon
> > maybe fails to create this file since the user ntp is not always
> > permitted to write /etc.
> >
> > Refer to other distributions such as RedHat, Debian, just moving
> > the file to /var/lib/ntp which the home dir of user ntp.
> 
> Note that this new version depends on 
> http://patches.openembedded.org/patch/81585/ which provides the 
> packaging of ntp's home directory, which wasn't captured into 
> master-next.  That would be obscured by the presence of the previous 
> version of this patch which (IMO) improperly uses volatile to create 
> that directory.

Thanks for keeping eye on me, it should be fixed in master-next now.

> 
> Peter
> 
> >
> > Signed-off-by: Wenzong Fan <wenzong.fan at windriver.com>
> > ---
> >   meta-networking/recipes-support/ntp/files/ntp.conf |    2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/meta-networking/recipes-support/ntp/files/ntp.conf b/meta-networking/recipes-support/ntp/files/ntp.conf
> > index 875b7eb..676e186 100644
> > --- a/meta-networking/recipes-support/ntp/files/ntp.conf
> > +++ b/meta-networking/recipes-support/ntp/files/ntp.conf
> > @@ -1,7 +1,7 @@
> >   # This is the most basic ntp configuration file
> >   # The driftfile must remain in a place specific to this
> >   # machine - it records the machine specific clock error
> > -driftfile /etc/ntp.drift
> > +driftfile /var/lib/ntp/drift
> >   # This should be a server that is close (in IP terms)
> >   # to the machine.  Add other servers as required.
> >   # Unless you un-comment the line below ntpd will sync
> 
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20141013/50c85416/attachment-0002.sig>


More information about the Openembedded-devel mailing list