-
Notifications
You must be signed in to change notification settings - Fork 116
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
resindataexpander: expand data part to max usable size on MBR #2243
base: master
Are you sure you want to change the base?
Conversation
Can one of the admins verify this patch? |
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.
Could you also please make separate previous commits to:
- Fix all previous shellcheck errors
- Reformat to use tabs instead of spaces (I use the following vim setting)
:set filetype=sh noexpandtab shiftwidth=4 tabstop=4 autoindent
meta-balena-common/recipes-core/initrdscripts/files/resindataexpander
Outdated
Show resolved
Hide resolved
meta-balena-common/recipes-core/initrdscripts/files/resindataexpander
Outdated
Show resolved
Hide resolved
meta-balena-common/recipes-core/initrdscripts/files/resindataexpander
Outdated
Show resolved
Hide resolved
Change-type: patch Signed-off-by: Joseph Kogut <[email protected]>
Change-type: patch Signed-off-by: Joseph Kogut <[email protected]>
Change-type: patch Signed-off-by: Joseph Kogut <[email protected]>
Reformat to use tabs instead of spaces, according to the following vim config: :set filetype=sh noexpandtab shiftwidth=4 tabstop=4 autoindent Change-type: patch Signed-off-by: Joseph Kogut <[email protected]>
MBR formatted disks are only capable of 32-bit addressing of sectors, limiting disk usage to 2 TB. In cases where the full disk cannot be utilized, expand the data partition to fill the usable space, and print a message. Change-type: patch Signed-off-by: Joseph Kogut <[email protected]>
@balena-ci rebase |
@alexgg Good review, sorry I didn't catch those things before pushing! |
@balena-ci rebase |
@balena-ci rebase |
@alexgg Do we want to close this in favor of failing to resize the data partition on MBR partitioned disks > 2 TB? If so, I can rebase and push the shellcheck fixups separately. |
@jakogut separating the linter fixes is a good idea. With regards to this PR, I think the fix is a technical improvement, but it does not help the user realize they are using a DT with an MBR partition and that disks bigger than 2TB are not supported. |
@balena-ci rebase |
@resin-jenkins retest this please |
@ab77 it's just the discussion above about this patch not helping - the user has the wrong DT and the sooner they realize the better. So if we are going to expand anyway to make it work we better find a way to warn the user. We don't want this on a production device on the field. |
@alexgg so this is superseded then by the new generic-amd64 DT? I am the user by the way, at least one of them :) |
@ab77 yes, the |
@alexgg perfect, do you have a sense when we will have a generic-amd64 image to deploy? |
MBR formatted disks are only capable of 32-bit addressing of sectors,
limiting disk usage to 2 TB. In cases where the full disk cannot be
utilized, expand the data partition to fill the usable space, and print
a message.
Change-type: patch
Signed-off-by: Joseph Kogut [email protected]
Related to: #2241