summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-05-19 11:58:36 +0200
committerLudovic Courtès <ludo@gnu.org>2019-05-19 11:58:36 +0200
commitd68de958b60426798ed62797ff7c96c327a672ac (patch)
treeabb7723d188e1333e15fc84b0814c85c1ac96ef5
parentbaab87ac49e3f0f873e17eb16db9781189b1f2d1 (diff)
installer: Fix Guile-Parted crash on i686.v1.0.1
Fixes <https://bugs.gnu.org/35783>. This is a followup to 7d567af46b4e10ffafb1d0f76b524f5781460598. * gnu/installer/parted.scm (auto-partition!): Append ESP-PARTITION, when it is true, to the result of 'create-adjacent-partitions!'. * gnu/installer/newt/partition.scm (run-partioning-page): Remove 'initial-partitions' variable, and remove call to 'create-special-user-partitions'. Co-authored-by: Mathieu Othacehe <m.othacehe@gmail.com>
-rw-r--r--gnu/installer/newt/partition.scm6
-rw-r--r--gnu/installer/parted.scm16
2 files changed, 12 insertions, 10 deletions
diff --git a/gnu/installer/newt/partition.scm b/gnu/installer/newt/partition.scm
index abc8bdcc039..cd9d46316ae 100644
--- a/gnu/installer/newt/partition.scm
+++ b/gnu/installer/newt/partition.scm
@@ -751,12 +751,8 @@ by pressing the Exit button.~%~%")))
751 (disk (mklabel device label))) 751 (disk (mklabel device label)))
752 (disk-commit disk) 752 (disk-commit disk)
753 disk))) 753 disk)))
754 (initial-partitions (disk-partitions disk))
755 (scheme (symbol-append method '- (run-scheme-page))) 754 (scheme (symbol-append method '- (run-scheme-page)))
756 (user-partitions (append 755 (user-partitions (auto-partition! disk #:scheme scheme)))
757 (auto-partition! disk #:scheme scheme)
758 (create-special-user-partitions
759 initial-partitions))))
760 (run-disk-page (list disk) user-partitions 756 (run-disk-page (list disk) user-partitions
761 #:guided? #t))) 757 #:guided? #t)))
762 ((eq? method 'manual) 758 ((eq? method 'manual)
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;;