<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10761</bug_id>
          
          <creation_ts>2016-12-03 05:05:33 +0000</creation_ts>
          <short_desc>Building Debugfs with nfs-utils-client and ipkg</short_desc>
          <delta_ts>2017-02-09 16:08:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.3 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Gloff">mgloff</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68823</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Gloff">mgloff</who>
    <bug_when>2016-12-03 05:05:33 +0000</bug_when>
    <thetext>Adding &apos;nfs-utils-client&apos; to IMAGE_INSTALL when using opkg package manager and generating a DEBUGFS results in:

ERROR: core-image-minimal-1.0-r0 do_rootfs: Cannot get the installed packages list. Command &apos;/home/developer/oe/recipes/poky/build/tmp/sysroots/x86_64-linux/usr/bin/opkg -f /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/opkg.conf -o /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs  --force_postinstall --prefer-arch-to-version   status&apos; returned 0 and stderr:
Collected errors:
 * file_md5sum_alloc: Failed to open file /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/etab: No such file or directory.
 * file_md5sum_alloc: Failed to open file /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/rmtab: No such file or directory.
 * file_md5sum_alloc: Failed to open file /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/xtab: No such file or directory.
 * file_md5sum_alloc: Failed to open file /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/rootfs/var/lib/nfs/statd/state: No such file or directory.

ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in: /home/developer/oe/recipes/poky/build/tmp/work/qemux86-poky-linux/core-image-minimal/1.0-r0/temp/log.do_rootfs.5361
ERROR: Task (/home/developer/oe/recipes/poky/meta/recipes-core/images/core-image-minimal.bb:do_rootfs) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 2168 tasks of which 2167 didn&apos;t need to be rerun and 1 failed.

Build info:
Build Configuration:
BB_VERSION        = &quot;1.32.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;universal&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;2.2&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-poky
meta-yocto-bsp    = &quot;master:9e63f81c78e284c9b325fe04a1b59e61c7ad8a1a&quot;

Verified on Krogoth, Morty and Master.

Temporary work around as suggested by Robert Yang:

diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index a348b97..ba072c0 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -951,7 +951,7 @@ class OpkgRootfs(DpkgOpkgRootfs):
         if self.progress_reporter:
             self.progress_reporter.next_stage()

-        self._setup_dbg_rootfs([&apos;/etc&apos;, &apos;/var/lib/opkg&apos;, &apos;/usr/lib/ssl&apos;])
+        self._setup_dbg_rootfs([&apos;/etc&apos;, &apos;/var/lib/opkg&apos;, &apos;/usr/lib/ssl&apos;, &apos;/var/lib/nfs&apos;])

         execute_pre_post_process(self.d, opkg_post_process_cmds)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69657</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-01-10 16:07:49 +0000</bug_when>
    <thetext>Adding more directories to the debugfs is just continuing to work around a bug in opkg.  Patch on the list to fix the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70588</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2017-02-09 16:08:48 +0000</bug_when>
    <thetext>Merged in oe-core 0aaaacdf4456fe832b1c3940997c097e7e94b9e6.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>