Bug 14162 - initramfs-boot reproducibility failure
Summary: initramfs-boot reproducibility failure
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 3.3
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 3.3 M2
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-12-28 07:10 UTC by Naveen Saini
Modified: 2021-01-09 09:25 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.