Re: replace etc/network/interfaces with symbolic link
Bryan Evenson
Aurèle,
toggle quoted message
Show quoted text
-----Original Message-----If you comment those lines out, then ${sysconfdir}/network/interfaces should not be in the built RPM. So either there is a .bbappend that is adding the file back in, or the package isn't being rebuilt. Try checking the following to see what may be happening: 1. Check the creation date on the init-ifupdown RPM. If the RPM has not been re-created since the last time you modified the recipe, then the RPM is not being rebuilt with your changes. If you are not running a PR server, then you need to increment the PR version in your .bbappend. See http://www.yoctoproject.org/docs/1.7.1/dev-manual/dev-manual.html#working-with-a-pr-service for details on the PR service and how to handle PRs without the PR service. Note that if you are on an older poky branch that the steps for handling the PR service may be slightly different. Read the version of documentation that matches your current branch. 2. If the RPM is being rebuilt, extract the RPM on your build machine to look at its contents. If the interfaces file is still there, then there is still something not working right with the do_install step. Under tmp/work/<MACHINE>/init-ifupdown/<PV-PR>/temp/, open the file run.do_install (the filename will have a PID appended to the end, so it'll be named something like run.do_install.15612. If there are multiple in the temp directory, make sure you look at the latest one). In this file is the final do_install script that is run when performing the install step for the recipe. If this does not look like what you want, then something between the main recipe and the .bbappends are building the do_install step incorrectly. Since you are removing files that the original recipe adds, the cleanest approach may be to leave the original recipe untouched and to replace the do_install step in your .bbappend. If you modify the main recipe, later on if you switch to a different poky branch you'll lose your changes. Regards, Bryan Aurèle |
|