mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 05:48:07 -05:00
linux-boot: Fix e2fsck warning.
* gnu/build/linux-boot.scm (boot-system): Fix e2fsck warning.
This commit is contained in:
parent
3092f1b835
commit
aa901521e4
1 changed files with 4 additions and 0 deletions
|
@ -517,6 +517,8 @@ (define (lookup-module name)
|
||||||
(unless (pre-mount)
|
(unless (pre-mount)
|
||||||
(error "pre-mount actions failed")))
|
(error "pre-mount actions failed")))
|
||||||
|
|
||||||
|
(setenv "EXT2FS_NO_MTAB_OK" "1")
|
||||||
|
|
||||||
(if root
|
(if root
|
||||||
;; The "--root=SPEC" kernel command-line option always provides a
|
;; The "--root=SPEC" kernel command-line option always provides a
|
||||||
;; string, but the string can represent a device, a UUID, or a
|
;; string, but the string can represent a device, a UUID, or a
|
||||||
|
@ -533,6 +535,8 @@ (define (lookup-module name)
|
||||||
(for-each mount-file-system
|
(for-each mount-file-system
|
||||||
(remove root-mount-point? mounts))
|
(remove root-mount-point? mounts))
|
||||||
|
|
||||||
|
(setenv "EXT2FS_NO_MTAB_OK" #f)
|
||||||
|
|
||||||
(if to-load
|
(if to-load
|
||||||
(begin
|
(begin
|
||||||
(switch-root "/root")
|
(switch-root "/root")
|
||||||
|
|
Loading…
Reference in a new issue