Bug 15290 - Bad sed option in useradd_base.bbclass breaks passwd-expire (EXTRA_USERS_PARAMS)
Summary: Bad sed option in useradd_base.bbclass breaks passwd-expire (EXTRA_USERS_PARAMS)
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: oe-core other (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided major
Target Milestone: 0.0.0
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2023-11-21 18:28 UTC by adam.johnston@arm.com
Modified: 2023-11-22 11:42 UTC (History)
0 users

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 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