From aad8a143000600abec5c8ebfadec4c09f34f1b73 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 12 Oct 2017 14:52:53 +0200 Subject: services: cleanup: Remove Shadow lock files from /etc. Partly fixes . Reported by Oleg Pykhalov . * gnu/services.scm (cleanup-gexp): Remove /etc/{passwd,group}.lock and /etc/.pwd.lock. --- gnu/services.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu/services.scm') diff --git a/gnu/services.scm b/gnu/services.scm index 329b7b1513..0bd3620852 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") -- cgit 1.4.1