Skip to content

Commit 16b035e

Browse files
committed
fix disko format mode
1 parent b3ed5b5 commit 16b035e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/reference.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ Options:
7474
disko: first unmount and destroy all filesystems on the disks we want to format, then run the create and mount mode
7575
install: install the system
7676
reboot: reboot the machine
77-
* --disko-mode create|mount|disko
78-
set the disko mode to create, mount or destroy. Default is disko.
79-
format: create partition tables, zpools, lvms, raids and filesystems (Experimental: Can be run increntally, but use with caution and good backups)
80-
mount: mount the partition at the specified root-mountpoint
77+
* --disko-mode disko|mount|format
78+
set the disko mode to format, mount or destroy. Default is disko.
8179
disko: first unmount and destroy all filesystems on the disks we want to format, then run the create and mount mode
80+
mount: mount the partition at the specified root-mountpoint
81+
format: create partition tables, zpools, lvms, raids and filesystems (Experimental: Can be run increntally, but use with caution and good backups)
8282
```
8383

8484
## Explanation of known error messages

src/nixos-anywhere.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ Options:
117117
disko: first unmount and destroy all filesystems on the disks we want to format, then run the create and mount mode
118118
install: install the system
119119
reboot: reboot the machine
120-
* --disko-mode create|mount|disko
121-
set the disko mode to create, mount or destroy. Default is disko.
122-
format: create partition tables, zpools, lvms, raids and filesystems (Experimental: Can be run increntally, but use with caution and good backups)
123-
mount: mount the partition at the specified root-mountpoint
120+
* --disko-mode disko|mount|format
121+
set the disko mode to format, mount or destroy. Default is disko.
124122
disko: first unmount and destroy all filesystems on the disks we want to format, then run the create and mount mode
123+
mount: mount the partition at the specified root-mountpoint
124+
format: create partition tables, zpools, lvms, raids and filesystems (Experimental: Can be run increntally, but use with caution and good backups)
125125
USAGE
126126
}
127127

@@ -209,11 +209,11 @@ parseArgs() {
209209
;;
210210
--disko-mode)
211211
case "$2" in
212-
create | mount | disko)
212+
format | mount | disko)
213213
diskoMode=$2
214214
;;
215215
*)
216-
abort "Supported values for --disko-mode create, mount, disko. Unknown mode : $2"
216+
abort "Supported values for --disko-mode are disko, mount and format. Unknown mode : $2"
217217
;;
218218
esac
219219

0 commit comments

Comments
 (0)