| Summary: | systemd-udevd : rtc0: Process '/sbin/hwclock --systz --rtc=/dev/rtc0' failed with exit code 1. | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Aurelien Oudelet <ouaurelien> |
| Component: | RPM Packages | Assignee: | Mageia Bug Squad <bugsquad> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Normal | CC: | olav |
| Version: | Cauldron | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://gitweb.mageia.org/software/forks/initscripts/commit/udev/rules.d/88-clock.rules?h=distro/mga&id=3534f83a02a72392adfa2343e5b858d0af0febe7 | ||
| See Also: | https://bugs.mageia.org/show_bug.cgi?id=3512 | ||
| Whiteboard: | |||
| Source RPM: | systemd-245.6-3.mga8.src.rpm, initscripts-9.78-16.mga8 | CVE: | |
| Status comment: | |||
|
Description
Aurelien Oudelet
2020-07-23 10:28:30 CEST
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=3534f83a02a72392adfa2343e5b858d0af0febe7 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 =>
RESOLVED |