-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
Rootfs not included in the final image due to error during shrinking #87
Comments
Hi, I'm facing the same issue, I too notice that there's no root partition included in the final image, only a boot partition, as shown by
Here's the relevant part of the logs from my project's CI build (see workflow file here):
@pguyot Do you happen to know what's going on here? |
…re present in the final image also add some debug printing to debug issue pguyot#87
I've forked this repo and augmented the test for optimize_image to also check whether both the boot and root partitions are included in the final image, see here. That test passes for the unoptimized image, but fails for the optimized image, also showing that it is missing the root partition, see build logs here. I've added some debug prints too but I'm still none the wiser as to what is going wrong exactly... |
Fix a miscalculaton of end of partition parameter for parted. It shall be the last byte of the partition, not start byte + size. This made parted fail when the partition wasn't shrunk by resize2fs. Avoid calling parted if the partition isn't shrunk by resize2fs. Fix a bug where `cleanup_image.sh` script was not aborting in case of errors, thus not revealing a corruption of generated image as reported in #87. Fix a bug where root partition wasn't properly identified because of a lazy glob Signed-off-by: Paul Guyot <[email protected]>
Fix a miscalculaton of end of partition parameter for parted. It shall be the last byte of the partition, not start byte + size. This made parted fail when the partition wasn't shrunk by resize2fs. Avoid calling parted if the partition isn't shrunk by resize2fs. Fix a bug where `cleanup_image.sh` script was not aborting in case of errors, thus not revealing a corruption of generated image as reported in #87. Fix a bug where cleanup_image.sh failed using images with more than 10 partitions because of a lazy glob. Signed-off-by: Paul Guyot <[email protected]>
@bvobart thank you for investigating this. Indeed there are two bugs here:
In your log and @dloranc logs above, we can see that |
Perfect, thank you for fixing this so quickly! Happy to help :) I can confirm that the produced final image now indeed has two partitions inside. |
Hello, I have an issue with building a simple image using this workflow:
During the build in the
arm-runner-action
I'm getting this error:The uploaded and compressed artifact is only 19MB, which is too small as it should be over 300MB. It appears that the rootfs partition is not included in the final image. What can I do to fix this issue?
This is the repository I created to test the action: https://github.com/dloranc/arm-runner-test/actions
The text was updated successfully, but these errors were encountered: