summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
Diffstat (limited to 'gnu')
-rw-r--r--gnu/services/base.scm4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 9bc78bd1ae..bfe5f52af4 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -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))))))