| Summary: | Sysvinit log file creation in /var/log sometimes fails at first boot | ||
|---|---|---|---|
| Product: | [Runtime] Installation | Reporter: | Trevor Gamblin <tvgamblin> |
| Component: | Installation | Assignee: | Trevor Gamblin <tvgamblin> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | kevin.tian, randy.macleod, tvgamblin |
| Version: | 3.1 | ||
| Target Milestone: | 4.0 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Trevor Gamblin
2020-02-06 17:38:25 UTC
Note that I can't consistently recreate this issue - for some builds I've never seen it, while on others I see some variation of the offending boot messages about 50% of the time after e.g. bitbake -c cleanall core-image-sato-sdk && bitbake core-image-sato-sdk. Seems pretty consistent now, although I've only tested this in two environments. Looking at a fix in meta/recipes-core/initscripts/initscripts-1.0/populate-volatile.sh. The simplest solution would be to use the until keyword to run touch/chown/chmod until they work, but that may be lead to confusion about expected behavior... Been attempting to put "wait" loops of the following form in before any of the key steps run in create_file() and mk_dir() in populate_volatiles.sh: while [ ! -w \"$1\" ]; do sleep 1; done; But I haven't yet added anything that consistently covers both the "touch" and the "chown" calls that show up. I am seeing at least one of the two happen during each boot. Have you seen/reproduced this bug recently Trevor? I am actually still seeing it sometimes, but it is not consistent. Will take another look. Haven't seen this in a while now. I suspect that this patch may have fixed it: https://git.openembedded.org/openembedded-core/commit/?id=64b659b9e40da3280ba8911b4044b19aa7366262 Marking as WORKSFORME. |