-
-
Notifications
You must be signed in to change notification settings - Fork 215
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
lvm_vg: fix size=100% leading to crash #848
Conversation
lvcreate -l does not accept a '100%' parameter which currently leads to a crash. THis change automatically changes `100%` to `100%FREE` leading to the intended behavior.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels a bit too magic from my perspective; I'd prefer failing loudly on non-supported values instead of preprocessing them like this.
While %FREE
is probably the most commonly used suffix, it's not the same as "%" in other backends semantically. There's also %VG, %PVS and %ORIGIN.
Maybe it's good enough to just update the example to use 100%FREE
?
@phaer actually, sgdisk doesn't support I do somewhat agree with your sentiment, the correct solution here is to fix this todo, but I think in the context of disko, being able to just use I would like at least one other maintainer to agree on this, I don't wanna just merge something like this without some sort of consensus. |
Thanks for noticing that @iFreilicht. Still not the biggest fan in terms of UX here, but I guess it's consistent then at least. So Lgtm! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alright, great!
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 58cd832 |
lvcreate -l does not accept a '100%' parameter which currently leads to a crash. THis change automatically changes
100%
to100%FREE
leading to the intended behavior.