On Wed, Sep 13, 2017 at 10:56 AM, Dan Walkes <danwal...@trellis-logic.com> wrote: > On Mon, Sep 11, 2017 at 5:01 AM, Burton, Ross <ross.bur...@intel.com> wrote: >> On 10 September 2017 at 21:35, Dan Walkes <danwal...@trellis-logic.com> >> wrote: >>> >>> It looks like because the update-rc.d step fails this setup gets moved >>> into a gpsd post install script, which won’t work because I’m >>> configured to use a read only root filesystem. So I need to find a >>> way to keep the update-rc.d step from failing. >> >> >> The recipe shouldn't invoke update-alternatives directly, but use the >> update-alternatives class instead. >> > > Thanks for the suggestion Ross. > > I didn't mention it before but I had already attempted to make this > change after I initially noticed the problem. See this commit: > https://github.com/Trellis-Logic/meta-openembedded/commit/ddf008dbdae602dbe722f1fcb231f5549e75a586 > > I didn't see any difference when I updated to use update-alternatives > instead of invoking directly. > > Since the error message was related to update-rc.d I've also attempted > to use the multi-update form of update-rc.d in the above commit. I > thought that might be required when multiple packages were built from > the same .bb file. However, don't see a difference in the result with > these changes either.
The fix was to specify INITSCRIPT_PACKAGES = "gpsd-conf", since the gpsd-conf package was where the /etc/init.d/gpsd file is being installed, per inspection of rpm files. See the patch at https://github.com/Trellis-Logic/meta-openembedded/commit/d91bab137dfc4f3ce6526bd8a6e95e5de7658fd5 I will submit this patch to the Openembedded-devel list unless anyone has other/different recommended changes. -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto