From: s hakkesteegt <brandhetlampje@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: Re: Create dir with 700 permissions from recipe
Date: Wed, 19 Aug 2009 10:55:21 +0200 [thread overview]
Message-ID: <6978a1740908190155n44f55df1k40ce20162caa73ae@mail.gmail.com> (raw)
In-Reply-To: <4A8AB6C4.8040805@xora.org.uk>
On Tue, Aug 18, 2009 at 4:12 PM, Graeme Gregory <dp@xora.org.uk> wrote:
>
> You above recipe doesnt create a package called.
>
> ${PN}-chmodsshdir
Thanx, I missed that.
On Tue, Aug 18, 2009 at 4:40 PM, Phil Blundell <pb@reciva.com> wrote:
>
> 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.
>
I agree that I think there is no reason not to do this during image
creation.
So If I combine both these suggestions, this script should only run when $D
is defined (what will be during image creation), isn't it?
pkg_postinst_${PN} () {
if [ test x"$D" != "x" ]; then
chmod 700 ${D}/home/root/.ssh
fi
}
Unfortunately the result is still the same (after bitbake -c clean my-image,
updated the PR of the recipe and then rebuild my-image).
For testing I tried this as well:
pkg_postinst_${PN} () {
chmod 700 ${D}/home/root/.ssh
}
But that didn't change the permissions in the rootfs either.
By the way: I rechecked the result in the workdir and there the result in
the image/ dir has the correct 700 permissions, but the result in the
install/${PN}/ has the 'wrong' 775 permissions already. Am I right that it
might not be a problem from the package manager, but that the .ipk might be
created with the wrong input?
Siebren
next prev parent reply other threads:[~2009-08-19 9:12 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-18 13:52 Create dir with 700 permissions from recipe s hakkesteegt
2009-08-18 14:12 ` Graeme Gregory
2009-08-18 14:40 ` Phil Blundell
2009-08-19 8:55 ` s hakkesteegt [this message]
2009-08-19 12:00 ` Michael Smith
2009-08-18 14:17 ` Koen Kooi
2009-08-19 6:58 ` s hakkesteegt
2009-08-19 12:19 ` marcin
2009-08-20 3:40 ` Denys Dmytriyenko
2009-08-18 14:33 ` Michael Smith
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6978a1740908190155n44f55df1k40ce20162caa73ae@mail.gmail.com \
--to=brandhetlampje@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox