Bug 15290

Summary: Bad sed option in useradd_base.bbclass breaks passwd-expire (EXTRA_USERS_PARAMS)
Product: [Build System, Metadata & Runtime] OE-Core Reporter: adam.johnston <adam.johnston>
Component: oe-core otherAssignee: Unassigned <unassigned>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: Undecided    
Version: unspecified   
Target Milestone: 0.0.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description adam.johnston@arm.com 2023-11-21 18:28:22 UTC
openembedded-core commit 6ec004b2e7b4342465af8e5e6cc66041834821a0 breaks passwd-expire function of meta/classes/useradd_base.bbclass

The sed option should be `--follow-symlinks` rather than `-follow-symlinks`.

`-follow-symlinks` is interpreted as `--file=ollow-symlinks` which results in ...

sed: couldn't open file ollow-symlinks: No such file or directory

followed by...

`ERROR: <image name>: passwd --expire operation did not succeed.`
Comment 1 adam.johnston@arm.com 2023-11-22 11:42:05 UTC
Resolved by commit 3c0deafcfcea3f610c7dd9a2d2884a16fbfe0497