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

CP-45750 Allow for alternative local storage SR types #681

Merged
merged 3 commits into from
Mar 27, 2024

Conversation

rdn32
Copy link
Contributor

@rdn32 rdn32 commented Mar 26, 2024

No description provided.

Robin Newton added 2 commits March 26, 2024 15:27
Unit test for storage-init, to guard against breakage from 4kn local
storage work.

Signed-off-by: Robin Newton <[email protected]>
storage-init no longer silently ignores unrecognized SR types, but
instead handles them in the same way as 'lvm' and 'ext' (the handling of
which has now been unified).

This presupposes that an SR type specified in first-boot configuration
will take a single configuration parameter - 'device' - which is a
comma-separated list of partitions - which is what 'lvm' and 'ext' do.

Signed-off-by: Robin Newton <[email protected]>
MarkSymsCtx
MarkSymsCtx previously approved these changes Mar 26, 2024
KevinLCtx
KevinLCtx previously approved these changes Mar 26, 2024
* storage-init itself contains bashisms, so in the tests don't try to
  run it with sh
* bash run under its own name seems a bit resistent to attempts to
  redefine '[', so instead manipulate storage-init to subsistute uses of
  this for a mockable alternative.

Signed-off-by: Robin Newton <[email protected]>
@rdn32 rdn32 dismissed stale reviews from KevinLCtx and MarkSymsCtx via 1502c79 March 26, 2024 17:21
@MarkSymsCtx MarkSymsCtx merged commit b1eecb5 into xapi-project:master Mar 27, 2024
2 checks passed
@rdn32 rdn32 deleted the private/rnewton/CP-45750-merge branch March 27, 2024 14:01
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.

3 participants