summaryrefslogtreecommitdiff
path: root/gnu/installer/parted.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/installer/parted.scm')
-rw-r--r--gnu/installer/parted.scm16
1 files changed, 11 insertions, 5 deletions
diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm
index 4ccc0b1f511..bd2640d1ad0 100644
--- a/gnu/installer/parted.scm
+++ b/gnu/installer/parted.scm
@@ -895,7 +895,10 @@ partitions (except the ESP on a GPT disk, if present) are wiped. SCHEME is the
895desired partitioning scheme. It can be 'entire-root or 895desired partitioning scheme. It can be 'entire-root or
896'entire-root-home. 'entire-root will create a swap partition and a root 896'entire-root-home. 'entire-root will create a swap partition and a root
897partition occupying all the remaining space. 'entire-root-home will create a 897partition occupying all the remaining space. 'entire-root-home will create a
898swap partition, a root partition and a home partition." 898swap partition, a root partition and a home partition.
899
900Return the complete list of partitions on DISK, including the ESP when it
901exists."
899 (let* ((device (disk-device disk)) 902 (let* ((device (disk-device disk))
900 (disk-type (disk-disk-type disk)) 903 (disk-type (disk-disk-type disk))
901 (has-extended? (disk-type-check-feature 904 (has-extended? (disk-type-check-feature
@@ -1001,10 +1004,13 @@ swap partition, a root partition and a home partition."
1001 (mount-point "/home"))))))) 1004 (mount-point "/home")))))))
1002 (new-partitions* (force-user-partitions-formatting 1005 (new-partitions* (force-user-partitions-formatting
1003 new-partitions))) 1006 new-partitions)))
1004 (create-adjacent-partitions! disk 1007 (append (if esp-partition
1005 new-partitions* 1008 (list (partition->user-partition esp-partition))
1006 #:last-partition-end 1009 '())
1007 (or end-esp-partition 0))))) 1010 (create-adjacent-partitions! disk
1011 new-partitions*
1012 #:last-partition-end
1013 (or end-esp-partition 0))))))
1008 1014
1009 1015
1010;; 1016;;