Bug 8235

Summary: Password utilities are removed when package management is disabled
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Diego Dompe <dompe>
Component: deploymentAssignee: Mariano Lopez <mariano.lopez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: javier.tia, liezhi.yang, mariano.lopez, poky.bs.watcher, poky.watcher
Version: 2.0   
Target Milestone: 2.1 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Diego Dompe 2015-09-01 14:10:47 UTC
I'm trying to create an image without package-management that includes the shadow and password utilities. However the code at meta/lib/oe/rootfs.py around line 243 always remove those utils if package-management is disabled.

This should be either configurable, or not happening. I think it's a valid case that I want password management without package management.
Comment 1 Mariano Lopez 2015-11-25 02:34:38 UTC
It seems the original idea was to remove such utilities with a read-only rootfs.  Since this functionality was embedded in image.bbclas it only checks for the package manager and not for a read-only rootfs. Old commits make reference that these packages must be removed for the read-only filesystem, for example: http://lists.openembedded.org/pipermail/openembedded-core/2014-February/089116.html
Comment 2 Mariano Lopez 2015-11-25 02:39:21 UTC
The packages listed in there are not installed with every image, for example, core-image-minimal doesn't install shadow; it must be listed in IMAGE_INSTALL in order to be installed.
Comment 3 Mariano Lopez 2015-11-25 02:41:38 UTC
The logic to uninstall the packages should be changed from checking for a package manager to check for a read-only filesystem.
Comment 4 Diego Dompe 2015-11-25 13:50:26 UTC
Agreed, the logic should check for read-only fs
Comment 5 Mariano Lopez 2015-12-01 18:06:37 UTC
Patch sent to the mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2015-November/113425.html
Comment 6 Mariano Lopez 2015-12-11 18:18:04 UTC
Waiting for integration in master, moving to 2.1 M2
Comment 7 Mariano Lopez 2015-12-14 14:14:11 UTC
This bug has been solved in commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9c0186fd57fe6b8ed7b4de7645fdadfc2e5db149