Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T967: Support NVMe drives in installer #82

Merged
merged 3 commits into from
Nov 6, 2018
Merged

T967: Support NVMe drives in installer #82

merged 3 commits into from
Nov 6, 2018

Conversation

bswinnerton
Copy link
Contributor

This pull request addresses https://phabricator.vyos.net/T967, specifically in the context of NVMe (SSD) drives not being shown in the installer options under the "Install the image on?" step. It does so by updating a variety of places in the installer scripts where there is an overly specific grep that doesn't allow for a device naming structure like nvme0n1.

As mentioned in 7b71365, I had a difficult time finding a canonical source of device name formatting in Linux (was hoping for an RFC), but this should be pretty close to reality for NVMe drives. They're named as so:

  • nvme0: first registered device's device controller
  • nvme0n1: first registered device's first namespace
  • nvme0n1p1: first registered device's first namespace's first partition

Support for mmc drives was discussed in https://phabricator.vyos.net/T967, but I classified it as out of scope for this pull request simply because I don't have a great way of testing that path.

It's worth pointing out that https://phabricator.vyos.net/T955 is likely a far more robust solution to this problem, but this pull request could hold over any other users who run into a similar problem as I do until the new installer is put in place.

I had a difficult time finding a canonical source of device name
formatting in Linux (was hoping for an RFC), but this should be pretty
close to reality.

NVMe drives are typically named as so:
- nvme0: first registered device's device controller
- nvme0n1: first registered device's first namespace
- nvme0n1p1: first registered device's first namespace's first partition
In the absence of this commit, the installer hangs right after:

> How big of a root partition should I create?
@dmbaturin dmbaturin merged commit 12fddd7 into vyos:current Nov 6, 2018
@bswinnerton bswinnerton deleted the support-nvme-in-installations branch November 6, 2018 02:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants