[systemd-devel] How to pass date/time to OS before Linux starts?

Andrei Borzenkov arvidjaar at gmail.com
Fri Oct 25 07:42:49 UTC 2024


On Fri, Oct 25, 2024 at 10:13 AM Barry <barry at barrys-emacs.org> wrote:
>
>
>
> > On 25 Oct 2024, at 00:04, Paul Menzel <pmenzel+systemd-devel at molgen.mpg.de> wrote:
> >
> > Dear Linux folks,
> >
> >
> > My CMOS battery is empty, so the time is reset to the firmware/BIOS date, but the firmware does not allow to set the date/time.
>
> The battery is a replaceable component on the motherboard.
>
> >
> > Do you know of a way to set the time on the Linux kernel command line, that is passed to systemd/the OS somehow?
>
> There is no option as far as I know.
>

Poor man's solution is the initrd module that parses kernel command
line parameters.


More information about the systemd-devel mailing list