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
1 changed files with 3 additions and 0 deletions

View File

@ -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))))