mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
linux-boot: Make /etc/mtab a symlink to /proc/self/mounts.
Fixes <http://bugs.gnu.org/19491>. * gnu/build/linux-boot.scm (mount-root-file-system): Make /root/etc/mtab a symlink to /proc/self/mounts. * gnu/build/file-systems.scm (mount-file-system): Don't update /etc/mtab. * guix/build/syscalls.scm (mount, umount): Have #:update-mtab? default to #f.
This commit is contained in:
parent
4379c35b73
commit
9331ba5dd9
3 changed files with 7 additions and 11 deletions
|
@ -275,7 +275,10 @@ UNIONFS."
|
|||
(check-file-system root type)
|
||||
(mount root "/root" type)))
|
||||
|
||||
(copy-file "/proc/mounts" "/root/etc/mtab"))
|
||||
;; Make sure /root/etc/mtab is a symlink to /proc/self/mounts.
|
||||
(when (file-exists? "/root/etc/mtab")
|
||||
(delete-file "/root/etc/mtab"))
|
||||
(symlink "/proc/self/mounts" "/root/etc/mtab"))
|
||||
|
||||
(define (switch-root root)
|
||||
"Switch to ROOT as the root file system, in a way similar to what
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue