Description of problem: Each system boot, I can see this warning level message: systemd-udevd[584]: rtc0: Process '/sbin/hwclock --systz --rtc=/dev/rtc0' failed with exit code 1. How reproducible: Always Steps to Reproduce: 1. Install Mageia (Cauldron), Classical ISO 2. Boot 3. See message in "journalctl -b -p warning" Therefore, RTC clock is UTC, as recommended upstream. No Windows dual-boot installation. Clock in UEFI Bios is correct and also in panel after boot. Don't know why this complain. My 2 systems are affected.
For me the command actually works if I run it myself as root. Is that the same for you?
CC: (none) => olav
Yes it runs fine if I do this command as root, in a console after boot. This only happens when system is booting and you can see this warning reported with journalctl -b -p warning
Likely culprit is /usr/lib/udev/rules.d/88-clock.rules, from initscripts-9.78-16.mga8 TEST=="/sys/fs/cgroup/systemd", GOTO="clock_end" ACTION=="add", SUBSYSTEM=="rtc", ATTR{hctosys}=="1", RUN+="/sbin/hwclock --systz --rtc=/dev/%k" ACTION=="add", SUBSYSTEM=="rtc", ATTR{hctosys}=="0", RUN+="/sbin/hwclock --hctosys --rtc=/dev/%k" ACTION=="add", ENV{MAJOR}=="10", ENV{MINOR}=="135", RUN+="/sbin/hwclock --hctosys --rtc=/dev/%k" LABEL="clock_end"
Source RPM: systemd-245.6-3.mga8.src.rpm => systemd-245.6-3.mga8.src.rpm, initscripts-9.78-16.mga8
Seems this is there when booting without systemd. See: http://gitweb.mageia.org/software/forks/initscripts/commit/udev/rules.d/88-clock.rules?h=distro/mga&id=3534f83a02a72392adfa2343e5b858d0af0febe7 https://bugs.mageia.org/show_bug.cgi?id=3512 Mageia added it back. There's a check if systemd is running, but it broke. I guess we're running cgroups2 now. Simplest solution is to just drop the patch. I do wonder if there are other checks such as /sys/fs/cgroup/systemd that broke.
URL: (none) => http://gitweb.mageia.org/software/forks/initscripts/commit/udev/rules.d/88-clock.rules?h=distro/mga&id=3534f83a02a72392adfa2343e5b858d0af0febe7See Also: (none) => https://bugs.mageia.org/show_bug.cgi?id=3512
Instead of checking for /sys/fs/cgroup/systemd, usually the check is for /run/systemd/system. If that directory exists, distro has booted with systemd. Currently figuring out how to just takeout the commit from our fork.
I've pushed initscripts-9.78-17.mga8 with a quick fix. For now it just removes the file in the spec. I've also updated the Mageia initscripts fork.
forgot to mark it fixed
Status: NEW => RESOLVEDResolution: (none) => FIXED