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

Default to 'yes' for lvcreate prompts #63

Merged
merged 1 commit into from Dec 20, 2018

Conversation

ashald
Copy link
Contributor

@ashald ashald commented Dec 5, 2018

Currently lvcreate detects xfs signature at the beginning of the volume and asks for a confirmation to zero it (the default behavior).
Because there is no stdin attached - confirmation is not given and lvcreate just creates the volume without zeroing its beginning.
This in turn leads to an error with mkfs.

Adding -y to lvcreate forces a yes answer to zeriong confirmation prompt and makes sure that volume beginning will be properly cleared.

Currently lvcreate detects xfs signature at the beginning of the volume and asks for a confirmation to zero it (the default behavior).
Because there is no stdin attached - confirmation is not given and lvcreate just creates the volume without zeroing its beginning.
This in turn leads to an error with mkfs.

Adding -y to lvcreate forces a yes answer to zeriong confirmation prompt and makes sure that volume beginning will be properly cleared.
@ashald
Copy link
Contributor Author

ashald commented Dec 5, 2018

This pull requests presumably is an alternative fix for the same issue as #62.
Either of them or both can be merged to address the underlying issue.

Copy link

@wborn wborn left a comment

Choose a reason for hiding this comment

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

Thanks for this alternative fix! 👍
I tested it and it works equally well as the fix I proposed with #62.
It seems a bit safer too compared to adding -f to the mkfs.xfs command! 🙂

@shishir-a412ed
Copy link
Collaborator

LGTM.

@shishir-a412ed shishir-a412ed merged commit df712a3 into containers:master Dec 20, 2018
@ashald
Copy link
Contributor Author

ashald commented Dec 20, 2018

Yay! 🎉

@ashald ashald deleted the feature/lvcreate-zero branch December 20, 2018 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants