Skip to content

install: use 4k image when when targeting 4k drives#203

Merged
jlebon merged 3 commits intocoreos:masterfrom
jlebon:pr/4k-stream
Apr 3, 2020
Merged

install: use 4k image when when targeting 4k drives#203
jlebon merged 3 commits intocoreos:masterfrom
jlebon:pr/4k-stream

Conversation

@jlebon
Copy link
Copy Markdown
Member

@jlebon jlebon commented Mar 31, 2020

Detect the sector size of the target device, then select the right
format from the stream metadata based on that.

Closes: #201

@jlebon
Copy link
Copy Markdown
Member Author

jlebon commented Mar 31, 2020

(Working on enhancing kola testiso to also test 4k installs.)

Comment thread src/cmdline.rs Outdated
Copy link
Copy Markdown
Contributor

@bgilbert bgilbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Comment thread src/blockdev.rs Outdated
Comment thread src/cmdline.rs Outdated
Comment thread src/cmdline.rs Outdated
@jlebon
Copy link
Copy Markdown
Member Author

jlebon commented Apr 1, 2020

OK so coreos/coreos-assembler#1312 enhances kola testiso for testing metal4k image installs. Will hook it up here and in the pipeline too afterwards, though it doesn't actually test the new codepath here since we're not doing a stream install. We could work on mocking that though... not sure if we should block on this. I did test this code on the current stable stream metadata though and it did the right thing. :)

Will address review comments tomorrow!

jlebon added 2 commits April 2, 2020 10:07
Detect the sector size of the target device, then select the right
format from the stream metadata based on that.

Closes: #201
This makes it easier for the user to tell that the right image is being
downloaded for the target device.
@jlebon
Copy link
Copy Markdown
Member Author

jlebon commented Apr 2, 2020

I added another commit here which adds metal4k testing in CI!

`kola testiso` knows how to do this now!
@jlebon jlebon merged commit 893f878 into coreos:master Apr 3, 2020
@jlebon jlebon deleted the pr/4k-stream branch April 3, 2020 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically select 4k metal image when needed

3 participants