From 15374648193f813d036f377bb1e944c9bafd4636 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 15 May 2019 14:33:23 +0200 Subject: installer: Rename 'auto-partition' to 'auto-partition!'. This is a followup to 7d567af46b4e10ffafb1d0f76b524f5781460598. * gnu/installer/parted.scm (create-adjacent-partitions): Rename to... (create-adjacent-partitions!): ... this. Make private. (auto-partition): Rename to... (auto-partition!): ... this. * gnu/installer/newt/partition.scm (run-partioning-page): Adjust accordingly. --- gnu/installer/newt/partition.scm | 2 +- gnu/installer/parted.scm | 21 ++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) (limited to 'gnu') diff --git a/gnu/installer/newt/partition.scm b/gnu/installer/newt/partition.scm index 2960adcf06..abc8bdcc03 100644 --- a/gnu/installer/newt/partition.scm +++ b/gnu/installer/newt/partition.scm @@ -754,7 +754,7 @@ (define (run-page devices) (initial-partitions (disk-partitions disk)) (scheme (symbol-append method '- (run-scheme-page))) (user-partitions (append - (auto-partition disk #:scheme scheme) + (auto-partition! disk #:scheme scheme) (create-special-user-partitions initial-partitions)))) (run-disk-page (list disk) user-partitions diff --git a/gnu/installer/parted.scm b/gnu/installer/parted.scm index 6975ecd519..4ccc0b1f51 100644 --- a/gnu/installer/parted.scm +++ b/gnu/installer/parted.scm @@ -105,8 +105,7 @@ (define-module (gnu installer parted) mkpart rmpart - create-adjacent-partitions - auto-partition + auto-partition! &no-root-mount-point no-root-mount-point? @@ -821,8 +820,8 @@ (define (rmpart disk number) ;; Auto partitionning. ;; -(define* (create-adjacent-partitions disk partitions - #:key (last-partition-end 0)) +(define* (create-adjacent-partitions! disk partitions + #:key (last-partition-end 0)) "Create the given PARTITIONS on DISK. LAST-PARTITION-END is the sector from which we want to start creating partitions. The START and END of each created partition are computed from its SIZE value and the position of the last @@ -888,9 +887,9 @@ (define (force-user-partitions-formatting user-partitions) (need-formatting? #t))) user-partitions)) -(define* (auto-partition disk - #:key - (scheme 'entire-root)) +(define* (auto-partition! disk + #:key + (scheme 'entire-root)) "Automatically create partitions on DISK. All the previous partitions (except the ESP on a GPT disk, if present) are wiped. SCHEME is the desired partitioning scheme. It can be 'entire-root or @@ -1002,10 +1001,10 @@ (define* (auto-partition disk (mount-point "/home"))))))) (new-partitions* (force-user-partitions-formatting new-partitions))) - (create-adjacent-partitions disk - new-partitions* - #:last-partition-end - (or end-esp-partition 0))))) + (create-adjacent-partitions! disk + new-partitions* + #:last-partition-end + (or end-esp-partition 0))))) ;; -- cgit v1.2.3