services: file-database: Exclude /dev by default.

* gnu/services/admin.scm (%default-file-database-excluded-directories):
Add “/dev’.

Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Change-Id: I06af6621cd363e140a6fc49e1cee97d15b365b89
This commit is contained in:
Ludovic Courtès 2025-03-12 11:50:40 +01:00
parent 667248948a
commit f4c832b277
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -430,7 +430,7 @@ This service is deprecated and slated for removal after 2025-06-15.")
;; Regexps of directories excluded from the 'locate' database.
(list (%store-prefix)
"/tmp" "/var/tmp" "/var/cache" ".*/\\.cache"
"/run/udev"))
"/run/udev" "/dev"))
(define (string-or-gexp? obj)
(or (string? obj) (gexp? obj)))