HWCLOCK(5)
๐ HWCLOCK(5) ๐
ok so bestie, welcome to the hwclock manual page โ this one's all about the lil settings file that controls how the hwclock init script behaves. it's short, it's sweet, and ngl it's mostly a "please don't touch this" situation. let's get into it ๐ฆ
โจ NAME โจ
hwclock โ settings that affect the behaviour of the hwclock init script ๐
๐ธ DESCRIPTION ๐ธ
ok so there's this file, /etc/default/hwclock, and it holds settings in POSIX format, like this:
VAR=VAL
that's the whole vibe. just VAR=VAL, one assignment per line, only one per line, no stacking, no chaos. you can also drop comments in there โ anything starting with # is a comment and gets ignored, so go off, annotate your life ๐
๐ SETTINGS ๐
here's the tea โ these are the settings you can actually set, bestie:
HCTOSYS_DEVICEโ this is the hardware clock device you want to use. it defaults tortc0. and honestly? it should probably match up with theCONFIG_RTC_HCTOSYS_DEVICEkernel config option. they're giving soulmates, fr fr ๐ซถ
โ ๏ธ okay this is the important part, don't scroll past it: if you change this, you also need to install a custom udev rule, mirroring /usr/lib/udev/rules.d/85-hwclock.rules. otherwise? the hardware clock device gets ignored during boot. ignored!! at boot!! like it wasn't even invited ๐ญ
and listen โ on almost all systems, this should not be changed. like, at all. leave it alone, she's fine, she's thriving ๐
๐ฆ NOTES ๐ฆ
on systems using systemd as init, the hwclock init script is ignored. periodt. it's just not the main character on those systems, no cap.
๐ SEE ALSO ๐
and that's the whole page, bestie โจ this lil slice of the Debian Administrator's Manual is dated Dec 2020 and it's filed under HWCLOCK(5) โ mwah, iconic, no notes ๐๐
๐ฆ where this page comes from
- debian bookworm: util-linux-extra 2.38.1-5+deb12u1 ยท GPL-2.0-or-later
- debian bookworm: util-linux-extra 2.38.1-5+deb12u3 ยท GPL-2.0-or-later
- debian trixie: initscripts 3.14-4 ยท GPL-2.0-or-later
- ubuntu jammy: util-linux 2.37.2-4ubuntu3 ยท GPL-2.0-or-later
- ubuntu jammy: util-linux 2.37.2-4ubuntu3.6 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms