Sign inSign up

iacaelectronique/iaca-image-shrinker

By iacaelectronique

•Updated over 1 year ago

This image is designed to minimize the size of a Linux image

Image
Developer tools
Operating systems
0

1.3K

iacaelectronique/iaca-image-shrinker repository overview

⁠IACA image shrinker

Powered by

⁠


⁠📄 Purpose

This script is designed to minimize the size of a Linux image, making it more efficient for storage and distribution. By following a series of optimization steps, thus reducing the image to its optimal size without compromising its functionality.

More on Github repository⁠

⁠⚠️ Requirements
  • MBR partition table only
  • Partition count need to be between 1 and 4 (include)
  • Support only FAT and EXT4 file system
⁠📋️ Targets supported
  • Olimex A20 (olimex-a20)
  • Raspberry (raspberry)

⁠▶️ Usage

docker run --privileged -v /dev:/dev \
          -it \
          -v $(pwd):/mnt \
          iacaelectronique/iaca-image-shrinker:latest -o /mnt/<output-image> -t <target> /mnt/<input-img>
⁠Example
ls
# Result
# 2021-05-07-raspios-buster-arm64.img

docker run --privileged \
          -v /dev:/dev \
          -it \
          -v $(pwd):/mnt \
          iacaelectronique/iaca-image-shrinker:latest -o /mnt/output.img -t raspberry /mnt/2021-05-07-raspios-buster-arm64.img

ls
# Result
# 2021-05-07-raspios-buster-arm64.img   output.img

Tag summary

Content type

Image

Digest

sha256:22f668249…

Size

7.7 MB

Last updated

over 1 year ago

docker pull iacaelectronique/iaca-image-shrinker