Bug 14162

Summary: initramfs-boot reproducibility failure
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Naveen Saini <naveen.kumar.saini>
Component: coreAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: meta.mr.watcher, meta.watcher, randy.macleod, richard.purdie
Version: 3.3   
Target Milestone: 3.3 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Naveen Saini 2020-12-28 07:10:37 UTC
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: 
-> initramfs-boot_1.0-r2_all.deb
-> initramfs-framework-base_1.0-r4_all.deb
-> nitramfs-live-boot-tiny_1.0-r12_amd64.deb
-> initramfs-live-boot_1.0-r12_amd64.deb

IPK packages:
-> initramfs-boot_1.0-r2_all.ipk
-> initramfs-framework-base_1.0-r4_all.ipk
-> initramfs-live-boot-tiny_1.0-r12_qemux86_64.ipk
-> initramfs-live-boot_1.0-r12_qemux86_64.ipk
Comment 1 Richard Purdie 2021-01-06 15:06:40 UTC
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.
Comment 2 Richard Purdie 2021-01-06 17:45:23 UTC
Issue is missing pseudo lchown wrapper. I've a patch in progress.