From: Neuer User <auslands-kv@gmx.de>
To: yocto@yoctoproject.org
Subject: Re: Problems with postinstall
Date: Fri, 06 Jun 2014 08:16:39 +0200 [thread overview]
Message-ID: <lmrmc7$vdr$1@ger.gmane.org> (raw)
In-Reply-To: <lmphm1$2bk$1@ger.gmane.org>
Nobody using any postinstalls?
I am still wondering why the postinstall does not work. I don't get any
error messages. The files are just not installed.
Am 05.06.2014 12:44, schrieb Neuer User:
> Hi
>
> I am desperately trying to get some postinstall scripts working. They
> should replace some defualt files with custom files I have. They are all
> in one package. The package looks like this:
>
> do_install() {
> install -d ${D}${sbindir}
> install -m 0700 ${S}/sbin/* ${D}${sbindir}
>
> install -d ${D}${bindir}
> install -m 0755 ${S}/bin/LEDstatus ${D}${bindir}
>
> install -d ${D}/etc/udev/rules.d
> install -m 0644 ${S}/udev/* ${D}/etc/udev/rules.d/
>
> install -d ${D}/etc/ssh
> install -m 0600 ${S}/ssh/ssh_* ${D}/etc/ssh/
> install -m 0644 ${S}/ssh/authorized_keys ${D}/etc/ssh/
>
> install -d ${D}/etc/gnupg
> install -m 0600 ${S}/gnupg/trustedkeys.gpg ${D}/etc/gnupg/
> }
>
> # Overwrite some configuration data with specific files
> pkg_postinst_${PN} () {
> install -o root -g root -m 0600 ${S}/ssh/sshd_config ${D}/etc/ssh/
> install -m 0755 ${S}/etc/rc.local ${D}/etc/
> install -m 0644 ${S}/etc/watchdog.conf ${D}/etc/
> install -m 0400 ${S}/etc/shadow ${D}/etc/
> install -m 0440 ${S}/etc/sudoers ${D}/etc/
> install -d ${D}/etc/default
> install -o root -g root -m 0644 ${S}/etc/default-ntpdate
> ${D}/etc/default/ntpdate
> }
>
> RDEPENDS_${PN} += "ntpdate udev ssh sudo"
>
> FILES_${PN} += "/*"
>
>
> I even tried changing the ownership of the files, but that did not
> change aything.
>
> Am I doing this completely wrong?
>
> Thanks for any hints
>
> Michael
>
next prev parent reply other threads:[~2014-06-06 6:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-05 10:44 Problems with postinstall Neuer User
2014-06-06 6:16 ` Neuer User [this message]
2014-06-06 7:11 ` Søren Holm
2014-06-06 10:54 ` Paul Barker
2014-06-06 11:08 ` Neuer User
2014-06-06 11:19 ` Jacob Kroon
2014-06-06 11:24 ` Neuer User
2014-06-06 12:31 ` Burton, Ross
2014-06-06 12:37 ` Neuer User
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='lmrmc7$vdr$1@ger.gmane.org' \
--to=auslands-kv@gmx.de \
--cc=yocto@yoctoproject.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.