Browse Source

install: final: Add some logging.

* gnu/installer/final.scm (umount-cow-store): Add some logging.
wip-haskell-updates-2
Mathieu Othacehe 2 years ago
parent
commit
478d1270ce
No known key found for this signature in database GPG Key ID: 8354763531769CA6
  1. 3
      gnu/installer/final.scm

3
gnu/installer/final.scm

@ -155,6 +155,8 @@ be much appreciated."
;; restart it.
(restart-service 'guix-daemon)
(syslog "Killing cow users.")
;; Kill all processes started while the cow-store was active (logins
;; on other TTYs for instance).
(kill-cow-users tmp-dir)
@ -162,6 +164,7 @@ be much appreciated."
;; Try to umount the store overlay. Some process such as udevd
;; workers might still be active, so do some retries.
(let loop ((try 5))
(syslog "Umount try ~a~%" (- 5 try))
(sleep 1)
(let ((umounted? (false-if-exception (umount tmp-dir))))
(if (and (not umounted?) (> try 0))

Loading…
Cancel
Save