aboutsummaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/image.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/system/image.scm b/gnu/system/image.scm
index b0c96c60f0..af0f3eb354 100644
--- a/gnu/system/image.scm
+++ b/gnu/system/image.scm
@@ -402,7 +402,8 @@ used in the image."
(file-system (partition-file-system partition)))
(cond
((member 'esp flags) "0xEF")
- ((string-prefix? "ext" file-system) "0x83")
+ ((or (string=? file-system "btrfs")
+ (string-prefix? "ext" file-system)) "0x83")
((or (string=? file-system "vfat")
(string=? file-system "fat16")) "0x0E")
((string=? file-system "fat32") "0x0C")
@@ -421,7 +422,8 @@ used in the image."
(file-system (partition-file-system partition)))
(cond
((member 'esp flags) "U")
- ((string-prefix? "ext" file-system) "L")
+ ((or (string=? file-system "btrfs")
+ (string-prefix? "ext" file-system)) "L")
((or (string=? file-system "vfat")
(string=? file-system "fat16")
(string=? file-system "fat32")) "F")
@@ -453,6 +455,8 @@ used in the image."
(let ((initializer (or #$(partition-initializer partition)
initialize-root-partition))
(inputs '#+(cond
+ ((string=? type "btrfs")
+ (list btrfs-progs fakeroot))
((string-prefix? "ext" type)
(list e2fsprogs fakeroot))
((or (string=? type "vfat")