mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
services: file-system: Do not try to unmount /dev and /.
Previously, when being stopped, the ‘user-file-systems’ service would attempt to unmount / and /dev, which was bound to fail. This was harmless, apart from a couple of lines in /var/log/messages, but it was wrong. * gnu/services/base.scm (file-system-shepherd-services)[user-unmount]: Remove “/” and “/dev” from the list of file systems subject to unmounting. Change-Id: Ieb68fe46c114909a64d54f885c94a9d7cd61f5e0
This commit is contained in:
parent
80709f1411
commit
447bcead88
1 changed files with 4 additions and 1 deletions
|
@ -496,7 +496,10 @@ (define user-unmount
|
|||
(stop #~(lambda args
|
||||
(define (known? mount-point)
|
||||
(member mount-point
|
||||
(cons* "/proc" "/sys" '#$known-mount-points)))
|
||||
;; Count file systems mounted by the initrd to as
|
||||
;; "known" and not user-mounted file systems.
|
||||
(cons* "/" "/dev" "/proc" "/sys"
|
||||
'#$known-mount-points)))
|
||||
|
||||
;; Make sure we don't keep the user's mount points busy.
|
||||
(chdir "/")
|
||||
|
|
Loading…
Reference in a new issue