[yocto] [Probably solved] Re: Post-installation and read-only-image
Neuer User
auslands-kv at gmx.de
Fri May 23 08:05:28 PDT 2014
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
>
More information about the yocto
mailing list