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

KVM --disksize option to grow target disk image #172

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

luke-jr
Copy link
Contributor

@luke-jr luke-jr commented Apr 7, 2018

Trying to build Talos II firmware in gitian, but hitting disk space issues.

For now, this lets the yml file choose a larger disk size. Only supported in KVM.

@luke-jr luke-jr requested a review from devrandom as a code owner April 7, 2018 05:11
@devrandom
Copy link
Owner

utACK

needs rebase


DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y install expect-dev parted
swapoff -a
{ cat <<\EOF; sleep 1; while pidof parted; do sleep 1; done; } | unbuffer -p parted /dev/vda
Copy link
Owner

Choose a reason for hiding this comment

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

why was there a need for this wait?

DEBIAN_FRONTEND=noninteractive apt-get --no-install-recommends -y install expect-dev parted
swapoff -a
{ cat <<\EOF; sleep 1; while pidof parted; do sleep 1; done; } | unbuffer -p parted /dev/vda
rm 2
Copy link
Owner

Choose a reason for hiding this comment

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

is this swap? a bit worried it might break some builds that were on the edge with memory. are you thinking swap is generally not needed?

This is needed for users with larger caches.
@luke-jr
Copy link
Contributor Author

luke-jr commented Aug 23, 2018

Rebased, but changed it from a YML option to a command-line gbuild option, since it is primarily dependent on user cache size.

@luke-jr luke-jr changed the title Enable builds to set disk image size (only for KVM) KVM --disksize option to grow target disk image Aug 23, 2018
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.

2 participants