Skip to content

Commit

Permalink
Add instruction for automatic minimize
Browse files Browse the repository at this point in the history
  • Loading branch information
urpylka committed May 8, 2020
1 parent c1b1714 commit 7f8c585
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ docker run --privileged -it --rm -v /dev:/dev -v $(pwd):/mnt urpylka/img-tool:v0

> If you leave `NEW_SIZE` parameter empty, program return posible minimum size. It works by **resize2fs** and maybe more than actually (for take minimum size minimize image a few times). It may also work poorly if used 1K, 2K block in FS (more on [man7.org](http://man7.org/linux/man-pages/man8/resize2fs.8.html)).
Automatic minimize an image:

```bash
img-resize <IMAGE_PATH> $(img-resize <IMAGE_PATH> | head -1 | cut -b 15-)
```

### Requirements

Requirement | Description
Expand Down

0 comments on commit 7f8c585

Please sign in to comment.