| Summary: | '/etc/default/rcS' missing on targets with 'poky-tiny' distro feature | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Chen Qi <Qi.Chen> |
| Component: | core | Assignee: | Chen Qi <Qi.Chen> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | dvhart, liezhi.yang, meta.mr.watcher, meta.watcher, sgw, yi.zhao, zhenfeng.zhao |
| Version: | 1.4 | ||
| Target Milestone: | 1.4 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Chen Qi
2013-01-10 03:23:45 UTC
poky-tiny intentionally does not support system v init. I think the question we need to ask here is why is hwclock.sh getting installed in poky-tiny. (In reply to comment #1) > poky-tiny intentionally does not support system v init. I think the question > we need to ask here is why is hwclock.sh getting installed in poky-tiny. hwclock.sh is provided by busybox. The above error was encountered when I was exploring poky-tiny. After I looked into it a little bit, I found it was actually a dependency issue. As stated above, there are no dependencies among sysvinit, initscripts and busybox. But initscripts and busybox both need /etc/default/rcS which is currently provided by sysvinit. As I think there shouldn't be any dependencies between these scripts (because the init system can be replaced, and in this case, by tiny-init), I'd like to seperate rcS-default from sysvinit and let initscripts and busybox depend on it. What do you think about it? Interesting. Have you determined why hwclock.sh needs /etc/default/rcS? That might need to be established first. Are the initscripts useful without sysvinit? Saul, what are your thoughts on the interdependence of these packages? Now that initscripts will not be built unless the init manager is sysvinit. I think we could just fix the hwclock.sh script by checking the existence of /etc/default/rcS before souring it. It seems more reasonable to just check the existence of /etc/default/rcS before sourcing it. merged into poky/master: b1c887277c67a9a0fb08162edc4cc9aeeb8f400d http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=416519ec595f59ebeafb95bed2546635cad41559 Verified with master branch: 0bedc0b80d9b46cbbf4a2c5e120a6aa52cbc7c2e Run "/etc/init.d/hwclock.sh restart" , there is no such error. |