[oe] Create dir with 700 permissions from recipe

Phil Blundell pb at reciva.com
Tue Aug 18 14:40:45 UTC 2009


On Tue, 2009-08-18 at 15:12 +0100, Graeme Gregory wrote:
> > pkg_postinst_${PN}-chmodsshdir () {
> >         chmod 700 /home/root/.ssh
> > }
> >
> >   
> You above recipe doesnt create a package called.
> 
> ${PN}-chmodsshdir
> 
> you also need to add something like
> 
> if test "x$D" != "x"; then
>     exit
> fi
> 
> to the beginning of the postinst to stop it running during image creation.

Or, perhaps even better, add ${D} to the chmod command's argument so
that it can run correctly during image creation.  Deferring this to boot
time would work, but it'd slow down the initial "ipkg configure" run for
no real gain.

p.






More information about the Openembedded-devel mailing list