Skip to content
Snippets Groups Projects
Commit 6a3f4c74 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

services: file-system: Change directory to root before unmounting.

* gnu/services/base.scm (file-system-service)[stop]: Add 'chdir' call.
parent d656c14e
No related branches found
No related tags found
No related merge requests found
...@@ -137,6 +137,10 @@ (define* (file-system-service device target type ...@@ -137,6 +137,10 @@ (define* (file-system-service device target type
(stop #~(lambda args (stop #~(lambda args
;; Normally there are no processes left at this point, so ;; Normally there are no processes left at this point, so
;; TARGET can be safely unmounted. ;; TARGET can be safely unmounted.
;; Make sure PID 1 doesn't keep TARGET busy.
(chdir "/")
(umount #$target) (umount #$target)
#f)))))) #f))))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment