<?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>14162</bug_id>
          
          <creation_ts>2020-12-28 07:10:37 +0000</creation_ts>
          <short_desc>initramfs-boot reproducibility failure</short_desc>
          <delta_ts>2021-01-09 09:25:36 +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>3.3</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>3.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Naveen Saini">naveen.kumar.saini</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</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>88823</commentid>
    <comment_count>0</comment_count>
    <who name="Naveen Saini">naveen.kumar.saini</who>
    <bug_when>2020-12-28 07:10:37 +0000</bug_when>
    <thetext>Device node permission bits are not set (/dev/console).

From recipe do_install():
mknod -m 622 ${D}/dev/console c 5 1

https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/recipes-core/initrdscripts/initramfs-live-boot_1.0.bb#n15

From diff-html:

reproducibleA/tmp/deploy/deb/all/initramfs-boot_1.0-r2_all.deb vs 
reproducibleB/tmp/deploy/deb/all/initramfs-boot_1.0-r2_all.deb


3	crw--w--w-···0·root·········(0)·root·········(0)····5,··1·1970-01-01·00:00:00.000000·./dev/console	
3	crw-------···0·root·········(0)·root·········(0)····5,··1·1970-01-01·00:00:00.000000·./dev/console

https://autobuilder.yocto.io/pub/repro-fail/oe-reproducible-20201223-og6v1hn1/packages/diff-html/

Failure logs:
https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1291/steps/14/logs/stdio

Same analysis goes for below deb and ipk packages:
DEB packages: 
-&gt; initramfs-boot_1.0-r2_all.deb
-&gt; initramfs-framework-base_1.0-r4_all.deb
-&gt; nitramfs-live-boot-tiny_1.0-r12_amd64.deb
-&gt; initramfs-live-boot_1.0-r12_amd64.deb

IPK packages:
-&gt; initramfs-boot_1.0-r2_all.ipk
-&gt; initramfs-framework-base_1.0-r4_all.ipk
-&gt; initramfs-live-boot-tiny_1.0-r12_qemux86_64.ipk
-&gt; initramfs-live-boot_1.0-r12_qemux86_64.ipk</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88875</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-06 15:06:40 +0000</bug_when>
    <thetext>Happened again, seems to happen on tumbleweed workers where umask seems to be working differently with pseudo...

https://autobuilder.yoctoproject.org/typhoon/#/builders/56/builds/1291

Seen on tumbleweed-ty-1 and tumbleweed-ty-3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88877</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-06 17:45:23 +0000</bug_when>
    <thetext>Issue is missing pseudo lchown wrapper. I&apos;ve a patch in progress.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88896</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-01-09 09:25:36 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5f8a32de9dbca7cb33cdafe3384d1c1c786b7ce9</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>