ERROR: The following packages could not be configuredoffline and rootfs is read-only: ...

問題

bitbake でイメージをビルドすると、次のようなエラーが表示される。

ERROR: The following packages could not be configuredoffline and rootfs is read-only: ['100-${PN}']
ERROR: Function failed: do_rootfs
ERROR: Logfile of failure stored in: ${WORKDIR}/temp/log.do_rootfs
ERROR: Task 7 (/home/user/yocto/poky/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'

環境

Yocto 1.6 (daisy)

原因1

ファイルのインストール先パスが誤っていたため。

install  -m  0755  start-stop-script  ${D}${sysconfdir}/start-stop-script

解決策1

インストール先パスを修正した。

install  -m  0755  start-stop-script  ${D}${sysconfdir}/init.d/start-stop-script

原因2

start-stop-script のファイル名と INITSCRIPT_NAME の値が異なっていたため。

install  -m  0755  start-stop-script.sh  ${D}${sysconfdir}/init.d

INITSCRIPT_NAME = "start-stop-script"

解決策2

ファイル名を変更した。

install  -m  0755  start-stop-script.sh  ${D}${sysconfdir}/init.d/start-stop-script