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

Add file:// support and provide a nerfed library #4

Merged
merged 1 commit into from
Aug 18, 2021

Conversation

rustydb
Copy link
Contributor

@rustydb rustydb commented Jul 20, 2021

Summary and Scope

 
This PR does 3 things:

  • new library /lib/metal-lib.sh and /lib/metal-md-lib.sh now exist, the former is
    safer to include and provides simple functions that all metal-dracut
    modules may use. The latter is for md-operations (disk and RAID ops).
    This library is more strict and will die if the environment is not
    suitable.

  • File support is also added, meaning
    metal.server=file://mydir?label=MYUSB will result in loading objects off
    that FSLabel from that directory. 

  • Cleanup was done, code was cleaned up to be more verbose with warnings and quieter when needed

@rustydb rustydb requested a review from heemstra July 20, 2021 19:49
@rustydb rustydb force-pushed the feature/local-disk-support-and-cleanup branch 3 times, most recently from 90bf74b to 4405674 Compare July 21, 2021 14:59
@rustydb rustydb force-pushed the feature/local-disk-support-and-cleanup branch 3 times, most recently from 9376749 to f90bcdd Compare August 18, 2021 14:14
@rustydb rustydb force-pushed the feature/local-disk-support-and-cleanup branch 2 times, most recently from 0a8fbb7 to 09aa5ef Compare August 18, 2021 17:58
/lib/metal-lib.sh and /lib/metal-md-lib.sh now exist, the former is
safer to include and provides simple functions that all metal-dracut
modules may use. The latter is for md-operations (disk and RAID ops).
This library is more strict and will die if the environment is not
suitable.

File support is also added, meaning
metal.server=file://mydir?label=MYUSB will result in loading objects off
that FSLabel from that directory.

CASMINST-2891 always say yes to wiping
@rustydb rustydb force-pushed the feature/local-disk-support-and-cleanup branch from 09aa5ef to eca670c Compare August 18, 2021 18:21
@rustydb rustydb merged commit ddef0ca into main Aug 18, 2021
@rustydb rustydb deleted the feature/local-disk-support-and-cleanup branch August 18, 2021 18:30
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.

2 participants