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

[raspbian] fix raspbian image expanding #600

Conversation

simonlingoogle
Copy link
Member

@simonlingoogle simonlingoogle commented Oct 28, 2020

Raspbian image expanding by 1024MB was never successful in the Github Actions.

This commit uses ryankurte/docker-rpi-emu#21 to fix this issue.

Question:

#532 failed on raspbian-check workflow constantly and requires this PR to pass all checks. Are we going to wait for ryankurte/docker-rpi-emu#21 to be merged? Or can we merge this commit using ryankurte/docker-rpi-emu#21 rather than docker-rpi-emu master?

FYI:

Failed expanding output

+ sudo ./expand.sh /home/runner/.cache/tools/images/2018-04-18-raspbian-stretch-lite.img 1024
...
Number  Start   End     Size    Type     File system  Flags
 1      4194kB  49.4MB  45.2MB  primary  fat32        lba
 2      50.3MB  1862MB  1812MB  primary  ext4

Making new partition from 50.3MB to 2936MB
e2fsck 1.44.1 (24-Mar-2018)
e2fsck: need terminal for interactive repairs
resize2fs 1.44.1 (24-Mar-2018)
Please run 'e2fsck -f /dev/loop1' first.

Successful expanding output

+ sudo ./expand.sh /home/runner/.cache/tools/images/2018-04-18-raspbian-stretch-lite.img 1024
...
Number  Start   End     Size    Type     File system  Flags
 1      4194kB  49.4MB  45.2MB  primary  fat32        lba
 2      50.3MB  1862MB  1812MB  primary  ext4

Making new partition from 50.3MB to 2936MB
rootfs: 39315/110656 files (0.1% non-contiguous), 256882/442368 blocks
resize2fs 1.44.1 (24-Mar-2018)
Resizing the filesystem on /dev/loop1 to 704512 (4k) blocks.
The filesystem on /dev/loop1 is now 704512 (4k) blocks long.

@simonlingoogle
Copy link
Member Author

This PR is no longer necessary since ryankurte/docker-rpi-emu#21 has been merged.

@simonlingoogle simonlingoogle deleted the fix-raspbian-check-expand branch October 28, 2020 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant