linux-boot: Fix e2fsck warning.
authorDanny Milosavljevic <dannym@scratchpost.org>
Fri, 31 May 2019 11:27:35 +0000 (13:27 +0200)
committerDanny Milosavljevic <dannym@scratchpost.org>
Mon, 3 Jun 2019 16:08:56 +0000 (18:08 +0200)
* gnu/build/linux-boot.scm (boot-system): Fix e2fsck warning.

gnu/build/linux-boot.scm

index a35d18a..03f2ea2 100644 (file)
@@ -517,6 +517,8 @@ upon error."
          (unless (pre-mount)
            (error "pre-mount actions failed")))
 
+       (setenv "EXT2FS_NO_MTAB_OK" "1")
+
        (if root
            ;; The "--root=SPEC" kernel command-line option always provides a
            ;; string, but the string can represent a device, a UUID, or a
@@ -533,6 +535,8 @@ upon error."
        (for-each mount-file-system
                  (remove root-mount-point? mounts))
 
+       (setenv "EXT2FS_NO_MTAB_OK" #f)
+
        (if to-load
            (begin
              (switch-root "/root")