radxa-repo / rbuild

Radxa Image Builder (Maintenance mode)
https://radxa-repo.github.io/rbuild/
GNU General Public License v3.0
53 stars 44 forks source link

shrink-image error #15

Closed gsingh93 closed 1 year ago

gsingh93 commented 1 year ago

The TARGET_BLOCKS variable here ends up being an empty string for me, which causes more errors later: https://github.com/radxa-repo/rbuild/blob/main/rbuild#L90

This seems to be because e2fsck needs to be run first:

resize2fs 1.47.0 (5-Feb-2023)
Please run 'e2fsck -f /dev/mapper/loop11p2' first.

After running that, shrink-image works fine.

RadxaYuntian commented 1 year ago

I used to think kpartx can't print the correct loop device after attaching the file. Well I just tried again and it seems to work. I'll update the code so it is not guessing the device name.

RadxaYuntian commented 1 year ago

Closed by d3e949fd625d10d1ddefa76945dcf2612a1ffa85.