Artix Linux Forum

Init systems => runit => Topic started by: VictorBrand on 21 January 2021, 14:37:57

Title: Runit hwclock configuration
Post by: VictorBrand on 21 January 2021, 14:37:57
Recently I was distrohopping and used to dualboot my linux systems with windows. Thus, my hardware clock was set to localtime (UTC+3) and I was to setup this setting in linux installations. This happens in different ways in different distros, but I was unable to set this param in Artix-runit (setting HARDWARECLOCK='localtime' in /etc/rc/rc.conf had no effect), so I just commented out clock configuration in /etc/rc/sysinit/15-hwclock.

But now I'm studying runit scripts in Artix and it seems to me that /usr/lib/rc/sv.d/hwclock (the file to which /etc/rc/sysinit/15-hwclock is linked to) just doesn't include /etc/rc/rc.conf. It lacks the line

Code: [Select]
. /etc/rc/rc.conf

in the beginning, so there is no predefined HARDWARECLOCK parameter in it. That's why changing it in rc.conf had no effect.
Title: Re: Runit hwclock configuration
Post by: konimex on 22 January 2021, 03:23:50
runit-rc-20210122 has been released to address this issue. Thanks for the report.