| Summary: | When using USERADDEXTENSION = "useradd-staticids" swtpm recipe cause troubles on parsing | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Other YP Layers | Reporter: | Piotr Łobacz <p.lobacz> |
| Component: | meta-security | Assignee: | akuster <akuster808> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | a.abfattah |
| Version: | 4.1.4 | ||
| Target Milestone: | --- | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Piotr Łobacz
2023-02-16 12:46:32 UTC
Hi Piotr
I am trying to investigate so more info will be helpful from your side, i can suggest from the error message that there is possibly a typo as the error message suggests
A solution could be to pass a home-dir arg (e.g. /)
USERADD_PARAM:${PN} = "--system -g ${TSS_GROUP} --home-dir / \
--no-create-home --shell /bin/false ${BPN}"
instead of
USERADD_PARAM:${PN} = "--system -g ${TSS_GROUP} --home-dir \
--no-create-home --shell /bin/false ${BPN}"
but I am not able to reproduce your compilation issue , i built both the security-build-image and security-tpm-image with both of the variants for useradd above
Here is my build configuration
Build Configuration:
--------------------
BB_VERSION = "2.2.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "ubuntu-22.04"
TARGET_SYS = "x86_64-poky-linux"
MACHINE = "qemux86-64"
DISTRO = "poky"
DISTRO_VERSION = "4.1.4"
TUNE_FEATURES = "m64 core2"
TARGET_FPU = ""
meta
meta-poky
meta-yocto-bsp = "HEAD:3e95f268ce04b49ba6731fd4bbc53b1693c21963"
meta-oe = "langdale:cbbaa82238cd60f08c9b9cb58dde59d5f9318c7b"
meta-security = "langdale:a4562b19126ab655869da6db40e8eff49f84c490"
OK that fixed the problem for me Question shall I make a patch for that? I will try to send a patch this weekend. Actually I have just sent it out. |