You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you attempt to shrink an image that can't be shrunk anymore, the command exits with status 1. This was unexpected and requires us to suppress that error code so it doesn't kill our script. I'd argue this isn't an error since the result is what the user wanted, an image that's shrunk as much as possible. What are you thoughts?
# sudo sdm --shrink my.img* Start shrink on IMG 'my.img'> Check the file system
rootfs: 52111/215568 files (0.2% non-contiguous), 571790/861981 blocks
resize2fs 1.46.5 (30-Dec-2021)
% Image cannot be shrunk any further
# echo $?
1
We have to do this as a workaroung
# shrink it (always return exit code 0 since sdm sets it to 1 if the image already is the minimum size)
sudo sdm --shrink $1||true
The text was updated successfully, but these errors were encountered:
If you attempt to shrink an image that can't be shrunk anymore, the command exits with status 1. This was unexpected and requires us to suppress that error code so it doesn't kill our script. I'd argue this isn't an error since the result is what the user wanted, an image that's shrunk as much as possible. What are you thoughts?
We have to do this as a workaroung
The text was updated successfully, but these errors were encountered: