mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 19:19:20 -05:00
services: file-system: Change directory to root before unmounting.
* gnu/services/base.scm (file-system-service)[stop]: Add 'chdir' call.
This commit is contained in:
parent
d656c14ec9
commit
6a3f4c74fd
1 changed files with 4 additions and 0 deletions
|
@ -137,6 +137,10 @@ (define* (file-system-service device target type
|
|||
(stop #~(lambda args
|
||||
;; Normally there are no processes left at this point, so
|
||||
;; TARGET can be safely unmounted.
|
||||
|
||||
;; Make sure PID 1 doesn't keep TARGET busy.
|
||||
(chdir "/")
|
||||
|
||||
(umount #$target)
|
||||
#f))))))
|
||||
|
||||
|
|
Loading…
Reference in a new issue