New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cleanup real-time clock support #1196
Conversation
save-rtc.sh is pointless. It just calls hwclock.sh stop. hwclock.sh comes from busybox-hwclock and installs its own rc symlinks to stop itself. busybox-hwclock is installed and used in dom0. The uivm and ndvm images remove the initscript calling it and save-rtc.sh since they don't have a hardware clock. Just delete save-rtc.sh since it's not adding anything. Upstream OE has a save-rtc.sh that writes to /etc/timestamp, so that doesn't work with our read-only rootfs images. Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
dom0 and installer are the only machines that actually talk to a hardware real-time clock. The other virtual machines don't need to work with an rtc, so it can be remove. To actually do so, we need to add it to MACHINE_FEATURES_BACKFILL_CONSIDERED since it defaults enabled when unset. With that we need to explicitly add it for dom0 and installer. Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
hwclock.sh is no longer installed, so we can drop the explicit initscript removal. Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
hwclock.sh is no longer installed, so we don't need to remove it through PACKAGE_REMOVE. Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
Build $6634 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
|
I was surprised I needed I didn't know about the Not sure about the other |
Oh that must be |
Will merge soon. @crogers1 This looks very low risk, do you want it in stable-9? |
Yes, would be great to have in stable-9 |
Only the Dom0 and Installer machines have access to a hardware real-time clock. By removing 'rtc' from MACHINE_FEATURES (through MACHINE_FEATURES_BACKFILL_CONSIDERED), we also remove the hwclock.sh initscript from the virtual machines.
We can then clean up some image recipes.
save-rtc.sh is redundant, so we can drop that as well.