Merge pull request #232491 from 6t8k/20230517_nixos_manual_installing_partitioning

nixos/manual: rectify partitioning commands for UEFI/GPT
This commit is contained in:
Pol Dellaiera 2023-07-26 15:12:51 +02:00 committed by GitHub
commit 5763cc6221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,14 +249,14 @@ update /etc/fstab.
which will be used by the boot partition. which will be used by the boot partition.
```ShellSession ```ShellSession
# parted /dev/sda -- mkpart primary 512MB -8GB # parted /dev/sda -- mkpart root ext4 512MB -8GB
``` ```
3. Next, add a *swap* partition. The size required will vary according 3. Next, add a *swap* partition. The size required will vary according
to needs, here a 8GB one is created. to needs, here a 8GB one is created.
```ShellSession ```ShellSession
# parted /dev/sda -- mkpart primary linux-swap -8GB 100% # parted /dev/sda -- mkpart swap linux-swap -8GB 100%
``` ```
::: {.note} ::: {.note}
@ -550,8 +550,8 @@ corresponding configuration Nix expression.
### Example partition schemes for NixOS on `/dev/sda` (UEFI) ### Example partition schemes for NixOS on `/dev/sda` (UEFI)
```ShellSession ```ShellSession
# parted /dev/sda -- mklabel gpt # parted /dev/sda -- mklabel gpt
# parted /dev/sda -- mkpart primary 512MB -8GB # parted /dev/sda -- mkpart root ext4 512MB -8GB
# parted /dev/sda -- mkpart primary linux-swap -8GB 100% # parted /dev/sda -- mkpart swap linux-swap -8GB 100%
# parted /dev/sda -- mkpart ESP fat32 1MB 512MB # parted /dev/sda -- mkpart ESP fat32 1MB 512MB
# parted /dev/sda -- set 3 esp on # parted /dev/sda -- set 3 esp on
``` ```