HEX
Server: nginx/1.26.1
System: Linux main-vm 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User: root (0)
PHP: 8.2.19
Disabled: NONE
Upload Files
File: //snap/core20/current/lib/udev/rules.d/90-rtc-sys-time-init.rules
ACTION!="add", GOTO="rtc-sys-end"
SUBSYSTEM!="rtc", GOTO="rtc-sys-end"
KERNEL!="rtc*", GOTO="rtc-sys-end"

# When device rtc* is added
#     1) and the RTC module have successfully set system time from RTC (indicated with hctosys attribute)
#     2) and the kernel command line does not contain parameter ubuntu_core.rtc_sys_time_init that will cause
#        systemd generator rtc-sys-time-init-generator to instantiate [email protected]
# instantiate [email protected] for the device node
IMPORT{cmdline}=="ubuntu_core.rtc_sys_time_init"
ATTR{hctosys}=="1", ENV{ubuntu_core.rtc_sys_time_init}!="?*", ENV{SYSTEMD_WANTS}+="[email protected]"

# When device rtc* is added create device unit dev-rtc*.device which is used by [email protected]
# enabled by generator rtc-sys-time-init-generator when kernel command line contains parameter
# ubuntu_core.rtc_sys_time_init=/dev/rtc*
TAG+="systemd"

LABEL="rtc-sys-end"