<div dir="ltr"><div><div>Thanks Robert!<br></div>Bug filed:<br><a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=10761">https://bugzilla.yoctoproject.org/show_bug.cgi?id=10761</a><br><br></div>Michael<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 2, 2016 at 1:17 AM, Robert Yang <span dir="ltr">&lt;<a href="mailto:liezhi.yang@windriver.com" target="_blank">liezhi.yang@windriver.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Michael,<br>
<br>
On 12/02/2016 11:19 AM, Michael Gloff wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;ve run into an issue recently when trying to build an image along with the<br>
companion debugfs. This error only occurs if &#39;nfs-utils-client&#39; is added to<br>
IMAGE_INSTALL and ipkg packages are selected. I don&#39;t get the error with RPM or<br>
with removing nfs-utils-client. Also, I can see the missing files are present at<br>
some point during do_rootfs, but then must be getting wiped out? I noticed this<br>
in Krogoth first, but can reproduce in latest master. Any ideas?<br>
</blockquote>
<br>
Maybe something is wrong with opkg, it only happens when files are in /var/lib/foo, here is a *workaround*:<br>
<br>
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py<br>
index a348b97..ba072c0 100644<br>
--- a/meta/lib/oe/rootfs.py<br>
+++ b/meta/lib/oe/rootfs.py<br>
@@ -951,7 +951,7 @@ class OpkgRootfs(DpkgOpkgRootfs):<br>
         if self.progress_reporter:<br>
             self.progress_reporter.next_s<wbr>tage()<br>
<br>
-        self._setup_dbg_rootfs([&#39;/etc&#39;<wbr>, &#39;/var/lib/opkg&#39;, &#39;/usr/lib/ssl&#39;])<br>
+        self._setup_dbg_rootfs([&#39;/etc&#39;<wbr>, &#39;/var/lib/opkg&#39;, &#39;/usr/lib/ssl&#39;, &#39;/var/lib/nfs&#39;])<br>
<br>
         execute_pre_post_process(<wbr>self.d, opkg_post_process_cmds)<br>
<br>
<br>
This is not a regular fix, you can file a bug here:<br>
<a href="https://bugzilla.yoctoproject.org/" rel="noreferrer" target="_blank">https://bugzilla.yoctoproject.<wbr>org/</a><br>
<br>
We may fix it later.<br>
<br>
// Robert<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
developer@OEBuilder:~/oe/recip<wbr>es/poky/build$ bitbake core-image-minimal<br>
Loading cache: 100%<br>
|#############################<wbr>##############################<wbr>##############################<wbr>##############################<wbr>##############################<wbr>#####|<br>
Time: 0:00:00<br>
Loaded 1304 entries from dependency cache.<br>
NOTE: Resolving any missing task queue dependencies<br>
<br>
Build Configuration:<br>
BB_VERSION        = &quot;1.32.0&quot;<br>
BUILD_SYS         = &quot;x86_64-linux&quot;<br>
NATIVELSBSTRING   = &quot;universal&quot;<br>
TARGET_SYS        = &quot;i586-poky-linux&quot;<br>
MACHINE           = &quot;qemux86&quot;<br>
DISTRO            = &quot;poky&quot;<br>
DISTRO_VERSION    = &quot;2.2&quot;<br>
TUNE_FEATURES     = &quot;m32 i586&quot;<br>
TARGET_FPU        = &quot;&quot;<br>
meta<br>
meta-poky<br>
meta-yocto-bsp    = &quot;master:9e63f81c78e284c9b325fe<wbr>04a1b59e61c7ad8a1a&quot;<br>
<br>
Initialising tasks: 100%<br>
|#############################<wbr>##############################<wbr>##############################<wbr>##############################<wbr>##############################<wbr>|<br>
Time: 0:00:03<br>
NOTE: Executing SetScene Tasks<br>
NOTE: Executing RunQueue Tasks<br>
ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed packages<br>
list. Command<br>
&#39;/home/developer/oe/recipes/po<wbr>ky/build/tmp/sysroots/x86_64-<wbr>linux/usr/bin/opkg -f<br>
/home/developer/oe/recipes/pok<wbr>y/build/tmp/work/qemux86-poky-<wbr>linux/core-image-minimal/1.0-<wbr>r0/opkg.conf<br>
-o<br>
/home/developer/oe/recipes/pok<wbr>y/build/tmp/work/qemux86-poky-<wbr>linux/core-image-minimal/1.0-<wbr>r0/rootfs<br>
--force_postinstall --prefer-arch-to-version   status&#39; returned 0 and stderr:<br>
Collected errors:<br>
 * file_md5sum_alloc: Failed to open file<br>
/home/developer/oe/recipes/pok<wbr>y/build/tmp/work/qemux86-poky-<wbr>linux/core-image-minimal/1.0-<wbr>r0/rootfs/var/lib/nfs/etab:<br>
No such file or directory.<br>
 * file_md5sum_alloc: Failed to open file<br>
/home/developer/oe/recipes/pok<wbr>y/build/tmp/work/qemux86-poky-<wbr>linux/core-image-minimal/1.0-<wbr>r0/rootfs/var/lib/nfs/rmtab:<br>
No such file or directory.<br>
 * file_md5sum_alloc: Failed to open file<br>
/home/developer/oe/recipes/pok<wbr>y/build/tmp/work/qemux86-poky-<wbr>linux/core-image-minimal/1.0-<wbr>r0/rootfs/var/lib/nfs/xtab:<br>
No such file or directory.<br>
 * file_md5sum_alloc: Failed to open file<br>
/home/developer/oe/recipes/pok<wbr>y/build/tmp/work/qemux86-poky-<wbr>linux/core-image-minimal/1.0-<wbr>r0/rootfs/var/lib/nfs/statd/<wbr>state:<br>
No such file or directory.<br>
<br>
ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs<br>
ERROR: Logfile of failure stored in:<br>
/home/developer/oe/recipes/pok<wbr>y/build/tmp/work/qemux86-poky-<wbr>linux/core-image-minimal/1.0-<wbr>r0/temp/log.do_rootfs.5361<br>
ERROR: Task<br>
(/home/developer/oe/recipes/po<wbr>ky/meta/recipes-core/images/co<wbr>re-image-minimal.bb:do_rootfs)<br>
failed with exit code &#39;1&#39;<br>
NOTE: Tasks Summary: Attempted 2168 tasks of which 2167 didn&#39;t need to be rerun<br>
and 1 failed.<br>
<br>
Summary: 1 task failed:<br>
<br>
/home/developer/oe/recipes/pok<wbr>y/meta/recipes-core/images/cor<wbr>e-image-minimal.bb:do_rootfs<br>
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.<br>
<br>
Thanks,<br>
<br>
Michael Gloff<br>
<a href="mailto:mgloff@emacinc.com" target="_blank">mgloff@emacinc.com</a> &lt;mailto:<a href="mailto:mgloff@emacinc.com" target="_blank">mgloff@emacinc.com</a>&gt;<br>
<br>
<br>
</blockquote>
</blockquote></div><br></div>