[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: services: cleanup: Remove Shadow lock files from /etc.
From: |
Ludovic Courtès |
Subject: |
02/02: services: cleanup: Remove Shadow lock files from /etc. |
Date: |
Thu, 12 Oct 2017 11:57:12 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit aad8a143000600abec5c8ebfadec4c09f34f1b73
Author: Ludovic Courtès <address@hidden>
Date: Thu Oct 12 14:52:53 2017 +0200
services: cleanup: Remove Shadow lock files from /etc.
Partly fixes <https://bugs.gnu.org/28772>.
Reported by Oleg Pykhalov <address@hidden>.
* gnu/services.scm (cleanup-gexp): Remove /etc/{passwd,group}.lock and
/etc/.pwd.lock.
---
gnu/services.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/services.scm b/gnu/services.scm
index 329b7b1..0bd3620 100644
--- a/gnu/services.scm
+++ b/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")