Repository navigation
Description
This is a tracking issue created only to track the different issues and pull requests related to the partitioning instructions in the manual.
The fdisk instructions in the manual may not be working right.
They may show more than one issue, the ordering of the partition may not match the expected ones for the following installation instructions, and the bootable flag might not be set properly.
- Manual Chapter 2 has incorrect examples #39354
- Fix making the partition bootable instructions #46309
- nixos docs: Update installation partitioner instructions #39942
- update NixOS fdisk instructions based on my flow (18.03) #45478
- https://logs.nix.samueldr.com/nixos/2018-10-01#1611513;
- https://logs.nix.samueldr.com/nixos/2018-10-01#1538353591-1538353667;
This issue is meant to track the problem and ask for help in finding a proper resolution. Not asking for others to write up, but asking to see if there would be issues in recommending things other than fdisk.
I, myself, am extremely reluctant into fixing this using other fdisk incantations. They pretty much look like a self-selecting filter by obscurity. I would lean much more towards using parted commands, like our installers tests do. (Though, not using --script).
Interfaces like parted are probably easier to reason about than single-letter commands which's meaning may change again in the future. They would also reduce the verbosity of the steps; it would be a set number of instructions, one per actual action, instead of a list of commands. (One for the disk format, one for setting the boot flag, and one per partition.)
Activity
vcunat commentedon Oct 1, 2018
# 46309 is twice in the list – that means you meant to link another fourth issue?
vcunat commentedon Oct 1, 2018
BTW, a couple weeks ago I successfully installed 18.09 (beta) on a machine for Hydra, and I followed our manual for partitioning via
fdisk. It was a simple setup, though, so I most likely missed any corner cases.EDIT: to be clear, I do not at all oppose migrating the instructions to
parted...grahamc commentedon Oct 1, 2018
partedis already in the closurenixpkgs/nixos/modules/profiles/base.nix
Line 15 in 83fd978
7c6f434c commentedon Oct 2, 2018
I think people who have a preference among these tools need only a line «if you prefer fdisk, it is also available» and maybe an internal link to instructions for installing extra tools in case someone wants sfdisk.
Parted probably has the lowest risk of instructions doing something but not the expected thing.
(and partitioning — or tools with single-letter commands — is not something needed for NixOS use after installation, so the obscurity filter does not even select for people who would be happier NixOS users)