* Post-installation and read-only-image
@ 2014-05-23 14:23 Neuer User
2014-05-23 15:05 ` [Probably solved] " Neuer User
0 siblings, 1 reply; 2+ messages in thread
From: Neuer User @ 2014-05-23 14:23 UTC (permalink / raw)
To: yocto
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
^ permalink raw reply [flat|nested] 2+ messages in thread* [Probably solved] Re: Post-installation and read-only-image
2014-05-23 14:23 Post-installation and read-only-image Neuer User
@ 2014-05-23 15:05 ` Neuer User
0 siblings, 0 replies; 2+ messages in thread
From: Neuer User @ 2014-05-23 15:05 UTC (permalink / raw)
To: yocto
Sorry, please ignore my mail. I seem to have missed a "install -d"
command. Not it builds the image, but I still seem to have some errors I
need to fix.
Thanks nonetheless!
Michael
Am 23.05.2014 16:23, schrieb Neuer User:
> 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
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-05-23 15:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-23 14:23 Post-installation and read-only-image Neuer User
2014-05-23 15:05 ` [Probably solved] " Neuer User
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.