Greetings @anthonyabboud,
Just to make sure I understand correctly. Basically you want to access and update/change the RTC from within a container more or less?
As for your use-case it sounds like the workflow is that while your application/system is running a user can change the system time dynamically at any time. Then of course in case of power loss the RTC will then retain this value. Did I understand everything correctly somewhat?
Is
timedatectl
the right thing to do for my specific case? If so, how can I allow usage within my app container?
Well as you saw timedatectl
requires systemd running to work properly since it interacts with various services and daemons. Now there is systemd in TorizonCore but it’s outside of the container on the host. It might be possible to get this going inside a container but it can make things more complex than needed. You should be able to modify and work with the RTC using just the hwclock
command unless you have special requirements or such that need timedatectl
specifically.
Now with regards to how to work with RTC inside a container. Have you taken a look at this similar thread here: Update RTC on Apalis imx6
Best Regards,
Jeremias