Skip to content
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

S9: Cleanup real-time clock support #1203

Merged
merged 4 commits into from Jul 9, 2019

Conversation

jandryuk
Copy link
Contributor

@jandryuk jandryuk commented Jul 8, 2019

This is the stable-9 version of #1196

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.

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>
(cherry picked from commit fe7cabb)
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>
(cherry picked from commit 662797f)
hwclock.sh is no longer installed, so we can drop the explicit
initscript removal.

Signed-off-by: Jason Andryuk <jandryuk@gmail.com>
(cherry picked from commit bb1cbb8)
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>
(cherry picked from commit 65cd43f)
@jean-edouard
Copy link
Member

Merging soon.

@jean-edouard jean-edouard merged commit a07d47a into OpenXT:stable-9 Jul 9, 2019
@jandryuk jandryuk deleted the s9-rm-save-rtc branch July 15, 2019 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants