Browse Source

services: cleanup: Remove Shadow lock files from /etc.

Partly fixes <https://bugs.gnu.org/28772>.
Reported by Oleg Pykhalov <go.wigust@gmail.com>.

* gnu/services.scm (cleanup-gexp): Remove /etc/{passwd,group}.lock and
/etc/.pwd.lock.
version-0.14.0
Ludovic Courtès 5 years ago
parent
commit
aad8a14300
No known key found for this signature in database GPG Key ID: 90B11993D9AEBB5
  1. 6
      gnu/services.scm

6
gnu/services.scm

@ -368,6 +368,12 @@ boot."
#t))))
;; Ignore I/O errors so the system can boot.
(fail-safe
;; Remove stale Shadow lock files as they would lead to
;; failures of 'useradd' & co.
(delete-file "/etc/group.lock")
(delete-file "/etc/passwd.lock")
(delete-file "/etc/.pwd.lock") ;from 'lckpwdf'
(delete-file-recursively "/tmp")
(delete-file-recursively "/var/run")
(mkdir "/tmp")

Loading…
Cancel
Save