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

Fix maths #60

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Fix maths #60

merged 1 commit into from
Mar 7, 2024

Conversation

swapdisk
Copy link
Member

Fixed issues raised under #58 and generally cleaned up and simplified the bigboot.sh script. No changes required to existing playbooks. Working as expected in my initial testing, but I will keep banging on it, so opening the PR as draft for now.

Copy link
Collaborator

@ygalblum ygalblum left a comment

Choose a reason for hiding this comment

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

Also please squash these commit (at least the ones that are back and forth of the same change)

roles/bigboot/files/bigboot.sh Show resolved Hide resolved
roles/bigboot/files/bigboot.sh Outdated Show resolved Hide resolved
@swapdisk swapdisk marked this pull request as ready for review March 5, 2024 21:11
add spaces for style

filesystem is a word

don't touch logical volumes

support ext[234]

round down requested size, use sectors with sfdisk, fix bad math

prevent globbing and word splitting

changelog

quit if shrink size is zero

PV extents numbered starting at 0

oops, go the other way!

move left, not right!

get pedantic about bigboot_size

calculate new pv size based on partition size

lsblk output pipe tail not reliable
@swapdisk
Copy link
Member Author

swapdisk commented Mar 6, 2024

Also please squash these commit (at least the ones that are back and forth of the same change)

Done.

Copy link
Collaborator

@ygalblum ygalblum left a comment

Choose a reason for hiding this comment

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

LGTM

@swapdisk swapdisk merged commit b1c97f3 into redhat-cop:main Mar 7, 2024
15 checks passed
@swapdisk swapdisk deleted the fix_maths branch March 7, 2024 19:35
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.

None yet

2 participants