[yocto] Post-installation and read-only-image
Neuer User
auslands-kv at gmx.de
Fri May 23 07:23:45 PDT 2014
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