summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-12-09 00:27:39 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-12-26 22:47:02 -0500
commit60d4652c5d33dd81ed05afd708e6a127584d59cd (patch)
tree91e5d122bd9dc872a62c27b9658fd7c9f83c3acb
parent7c476873e0300711bf92668cf01abd28f7295ead (diff)
downloadguix-60d4652c5d33dd81ed05afd708e6a127584d59cd.tar.gz
image: Enhance compatibility of the root ext4 partition.
Generating a raw-with-offset image would previously not be bootable with
U-Boot.

* gnu/system/image.scm (root-partition) [file-system-options]: New field.
-rw-r--r--gnu/system/image.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index d518a05a51..afef79185f 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -138,6 +138,9 @@ parent image record."
    (size 'guess)
    (label root-label)
    (file-system "ext4")
+   ;; Disable the metadata_csum and 64bit features of ext4, for compatibility
+   ;; with U-Boot.
+   (file-system-options (list "-O" "^metadata_csum,^64bit"))
    (flags '(boot))
    (initializer (gexp initialize-root-partition))))