From: Neuer User <auslands-kv@gmx.de>
To: yocto@yoctoproject.org
Subject: Post-installation and read-only-image
Date: Fri, 23 May 2014 16:23:45 +0200 [thread overview]
Message-ID: <llnllh$hju$1@ger.gmane.org> (raw)
Hello
I build a read-only-image and need to exchange a few configuration files
before the final image is build. Unfortunately, I ran into this error:
ERROR: The following packages could not be configuredoffline and rootfs
is read-only: xxx
My recipe looks basically as follows:
...
do_install() {
install -d ${D}${sbindir}
install -m 0700 ${S}/sbin/* ${D}${sbindir}
install -d ${D}${bindir}
...
}
# Overwrite some configuration data with specific files
pkg_postinst_${PN} () {
install -m 0600 ${S}/ssh/* ${D}/etc/ssh/
install -m 0755 ${S}/etc/rc.local ${D}/etc/
install -m 0644 ${S}/etc/asound.conf ${D}/etc/
install -m 0400 ${S}/etc/shadow ${D}/etc/
install -m 0440 ${S}/etc/sudoers ${D}/etc/
install -m 0644 ${S}/etc/default-ntpdate ${D}/etc/default/ntpdate
}
FILES_${PN} += "/*"
Anybody knows, what is wrong that the image cannot be configured offline?
Thanks
Michael
next reply other threads:[~2014-05-23 14:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-23 14:23 Neuer User [this message]
2014-05-23 15:05 ` [Probably solved] Re: Post-installation and read-only-image 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='llnllh$hju$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.