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

ask user for EFI partition size on USB disk #906

Merged
merged 1 commit into from Jul 12, 2016
Merged

ask user for EFI partition size on USB disk #906

merged 1 commit into from Jul 12, 2016

Conversation

gozora
Copy link
Member

@gozora gozora commented Jul 8, 2016

Issue #849

read efi_part_size

# Check if user entered unsigned integer larger than 0
if [[ "${efi_part_size}" =~ ^[0-9]+$ && ${efi_part_size} > 0 ]]; then
Copy link
Member

Choose a reason for hiding this comment

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

Concerning the > 0 test: I would use > 100 as otherwise what is the point?

Copy link
Member Author

Choose a reason for hiding this comment

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

Primary intention here was only to disallow enter zero as an value, as I'm not sure how parted would handle zero as input value and was worried that such corner case could cause problems.
As user I'd welcome if I could choose arbitrary value for EFI partition size. Making this value dependent on default value sounds confusing for me.

@jsmeix jsmeix added enhancement Adaptions and new features fixed / solved / done labels Jul 12, 2016
@jsmeix jsmeix added this to the Rear v1.19 milestone Jul 12, 2016
@jsmeix jsmeix self-assigned this Jul 12, 2016
@jsmeix
Copy link
Member

jsmeix commented Jul 12, 2016

@gozora
I assume you tested it and it works for you
so that I just merge it now.

@jsmeix jsmeix merged commit ee21500 into rear:master Jul 12, 2016
@gozora
Copy link
Member Author

gozora commented Jul 12, 2016

@jsmeix sure ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adaptions and new features fixed / solved / done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants