installer: Rename 'auto-partition' to 'auto-partition!'.
This is a followup to 7d567af46b
.
* 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.
This commit is contained in:
parent
79bfa42287
commit
1537464819
|
@ -754,7 +754,7 @@ by pressing the Exit button.~%~%")))
|
||||||
(initial-partitions (disk-partitions disk))
|
(initial-partitions (disk-partitions disk))
|
||||||
(scheme (symbol-append method '- (run-scheme-page)))
|
(scheme (symbol-append method '- (run-scheme-page)))
|
||||||
(user-partitions (append
|
(user-partitions (append
|
||||||
(auto-partition disk #:scheme scheme)
|
(auto-partition! disk #:scheme scheme)
|
||||||
(create-special-user-partitions
|
(create-special-user-partitions
|
||||||
initial-partitions))))
|
initial-partitions))))
|
||||||
(run-disk-page (list disk) user-partitions
|
(run-disk-page (list disk) user-partitions
|
||||||
|
|
|
@ -105,8 +105,7 @@
|
||||||
mkpart
|
mkpart
|
||||||
rmpart
|
rmpart
|
||||||
|
|
||||||
create-adjacent-partitions
|
auto-partition!
|
||||||
auto-partition
|
|
||||||
|
|
||||||
&no-root-mount-point
|
&no-root-mount-point
|
||||||
no-root-mount-point?
|
no-root-mount-point?
|
||||||
|
@ -821,8 +820,8 @@ cause them to cross."
|
||||||
;; Auto partitionning.
|
;; Auto partitionning.
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(define* (create-adjacent-partitions disk partitions
|
(define* (create-adjacent-partitions! disk partitions
|
||||||
#:key (last-partition-end 0))
|
#:key (last-partition-end 0))
|
||||||
"Create the given PARTITIONS on DISK. LAST-PARTITION-END is the sector from
|
"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
|
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
|
partition are computed from its SIZE value and the position of the last
|
||||||
|
@ -888,9 +887,9 @@ USER-PARTITIONS list and return the updated list."
|
||||||
(need-formatting? #t)))
|
(need-formatting? #t)))
|
||||||
user-partitions))
|
user-partitions))
|
||||||
|
|
||||||
(define* (auto-partition disk
|
(define* (auto-partition! disk
|
||||||
#:key
|
#:key
|
||||||
(scheme 'entire-root))
|
(scheme 'entire-root))
|
||||||
"Automatically create partitions on DISK. All the previous
|
"Automatically create partitions on DISK. All the previous
|
||||||
partitions (except the ESP on a GPT disk, if present) are wiped. SCHEME is the
|
partitions (except the ESP on a GPT disk, if present) are wiped. SCHEME is the
|
||||||
desired partitioning scheme. It can be 'entire-root or
|
desired partitioning scheme. It can be 'entire-root or
|
||||||
|
@ -1002,10 +1001,10 @@ swap partition, a root partition and a home partition."
|
||||||
(mount-point "/home")))))))
|
(mount-point "/home")))))))
|
||||||
(new-partitions* (force-user-partitions-formatting
|
(new-partitions* (force-user-partitions-formatting
|
||||||
new-partitions)))
|
new-partitions)))
|
||||||
(create-adjacent-partitions disk
|
(create-adjacent-partitions! disk
|
||||||
new-partitions*
|
new-partitions*
|
||||||
#:last-partition-end
|
#:last-partition-end
|
||||||
(or end-esp-partition 0)))))
|
(or end-esp-partition 0)))))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue