guix/gnu/services
Maxim Cournoyer 3bb6147fdc
services: udev: Also create subsystem nodes at boot.
This is a more correct fix to CDROM/DVDROM events/auto-mounting than was made
in the now-reverted commit 670724edcf ("gnu: eudev: Fix optical discs
detection/auto-mounting.")

This changes causes the 60-block.rules udev rules file shipped with eudev to
correctly set the default polling period to 2000 ms on block devices, which is
necessary for kernel events to be fired for CDROM drives for example.  To
validate it is set:

  # cat /sys/module/block/parameters/events_dfl_poll_msecs
  2000

Before, it would return 0.

* gnu/services/base.scm (udev-shepherd-service): <#:start>: Add a 'udevadm
trigger --change=add --type=subsystems' invocation, so that it also creates
subsystem nodes, as done in Void Linux or LinuxFromScratch init scripts for
example.
* gnu/tests/base.scm (run-basic-test): Add test.

Fixes: <https://issues.guix.gnu.org/35584>
Change-Id: Idc0eb5640163b27e41b72cc0c1885412a60805c1
2025-05-14 22:10:44 +09:00
..
admin.scm services: file-database: Search ‘updatedb’ in package. 2025-04-01 14:49:34 +02:00
audio.scm gnu: Fix some misspellings. 2025-02-19 11:21:47 +02:00
auditd.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
authentication.scm
avahi.scm
backup.scm services: shepherd: Factorize ‘trigger’ action. 2025-03-23 19:29:14 +01:00
base.scm services: udev: Also create subsystem nodes at boot. 2025-05-14 22:10:44 +09:00
certbot.scm services: certbot: Turn into a Shepherd timer. 2025-03-23 19:29:57 +01:00
cgit.scm
ci.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
configuration.scm services/configuration: Fix case where sub-documentation is nonexistent. 2025-03-18 16:12:38 +09:00
containers.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
cuirass.scm services: cuirass: Really allow ‘parameters’ to be a file-like object. 2025-03-21 13:29:18 +01:00
cups.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
databases.scm services: postgresql-role: Add support for password files. 2025-05-02 15:32:25 +09:00
dbus.scm
desktop.scm system: Only add guix artwork on a desktop system. 2025-05-12 09:33:27 +03:00
dict.scm services: dico: Add symbols to help users configure FreeDict with dicod. 2025-01-26 22:09:28 +01:00
dns.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
docker.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
file-sharing.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
games.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
ganeti.scm services: ganeti: Produce Shepherd timers instead of mcron jobs. 2025-03-23 19:30:44 +01:00
getmail.scm
guix.scm services: guix-build-coordinator: Allow passing extra arguments. 2025-05-11 10:19:11 +01:00
herd.scm services: herd: Use a smarter default for %shepherd-socket-file. 2025-04-22 11:35:23 +09:00
hurd.scm
kerberos.scm
ldap.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
lightdm.scm services: lightdm: Fix vnc server flag listen-address 2025-02-18 18:20:01 +01:00
linux.scm services: fstrim: Turn into a Shepherd timer. 2025-03-23 19:29:49 +01:00
lirc.scm
mail.scm services: opensmtpd: Add logging to a file. 2025-04-10 15:40:25 +02:00
mcron.scm
messaging.scm services: Add mosquitto-service-type. 2025-05-09 19:47:24 +02:00
monitoring.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
networking.scm services: network-manager: Handle existing configuration directory. 2025-03-23 10:28:33 -07:00
nfs.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
nix.scm
pam-mount.scm
pm.scm services: tlp: Make destructor return #f on success. 2025-04-08 17:06:58 +02:00
power.scm Add missing license file headers. 2025-03-11 14:50:47 -07:00
rsync.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
samba.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
science.scm
sddm.scm
security-token.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
security.scm
shepherd.scm services: shepherd: Add ‘shepherd-timer’. 2025-03-23 19:30:57 +01:00
sound.scm gnu: speakersafetyd: Add log file. 2025-04-14 13:49:29 +09:00
spice.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
ssh.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
syncthing.scm services: syncthing: Improve Syncthing code standard compliance. 2025-03-14 16:01:34 -04:00
sysctl.scm
telephony.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
upnp.scm services: readymedia: Change cache and log directory permissions to 755. 2025-03-25 11:37:02 +01:00
version-control.scm services: gitolite-service-type: Allow setting the admin name. 2025-04-03 21:16:24 +09:00
virtualization.scm services: Normalize and improve libvirt-configuration documentation. 2025-05-02 09:53:54 +09:00
vnc.scm services: Add missing Shepherd dependency on ‘user-processes’. 2025-02-23 22:53:06 +01:00
vpn.scm services: wireguard: Turn monitoring into a Shepherd timer. 2025-03-23 19:30:05 +01:00
web.scm services: anonip: Rotate log files. 2025-04-08 17:12:29 +02:00
xorg.scm services: gdm: Set GUIX_GDK_PIXBUF_MODULE_FILES. 2025-03-02 20:31:48 +01:00