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.
This commit is contained in:
Maxim Cournoyer 2022-12-09 00:27:39 -05:00
parent 7c476873e0
commit 60d4652c5d
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -138,6 +138,9 @@ (define root-partition
(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))))