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.
This commit is contained in:
		
							parent
							
								
									d8e89b1c79
								
							
						
					
					
						commit
						aad8a14300
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
					@ -368,6 +368,12 @@ boot."
 | 
				
			||||||
                                                #t))))
 | 
					                                                #t))))
 | 
				
			||||||
                    ;; Ignore I/O errors so the system can boot.
 | 
					                    ;; Ignore I/O errors so the system can boot.
 | 
				
			||||||
                    (fail-safe
 | 
					                    (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 "/tmp")
 | 
				
			||||||
                     (delete-file-recursively "/var/run")
 | 
					                     (delete-file-recursively "/var/run")
 | 
				
			||||||
                     (mkdir "/tmp")
 | 
					                     (mkdir "/tmp")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue