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
@ -137,6 +137,10 @@ names such as device-mapping services."
|
||||
(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 New Issue
Block a user