~ruther/guix-local

6a3f4c74fd07a8c28fda3cc7389765f30da7895a — Ludovic Courtès 11 years ago d656c14
services: file-system: Change directory to root before unmounting.

* gnu/services/base.scm (file-system-service)[stop]: Add 'chdir' call.
1 files changed, 4 insertions(+), 0 deletions(-)

M gnu/services/base.scm
M gnu/services/base.scm => gnu/services/base.scm +4 -0
@@ 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))))))