[OpenWrt-Devel] [PATCH 0/5] x86: Fix small disk space in squashfs overlay

Petr Štetiar ynezz at true.cz
Fri Mar 29 10:07:15 EDT 2019


Hi,

this is a continuation of my work on fixing currently broken squashfs images
on x86, armvirt and malta.  This patch series fixes problem with small disk
space on squashfs overlays (f2fs/ext4).

Current squashfs snapshot(and probably releases as well) images are improperly
padded by just 128k, which doesn't correspond with TARGET_ROOTFS_PARTSIZE=256
default config option, leading to following:

 Filesystem                Size      Used Available Use% Mounted on
 /dev/root                 2.5M      2.5M         0 100% /rom
 /dev/loop0               85.0K      9.0K     71.0K  11% /overlay
 overlayfs:/overlay       85.0K      9.0K     71.0K  11% /

FYI, in this patch series, I've introduced two new variables

 IMG_ROOTFS:=$(IMG_PREFIX)-rootfs
 IMG_COMBINED:=$(IMG_PREFIX)-combined

which I plan to use later(maybe adding few others) in order to enforce
consistent naming of the images in the tree. I've touched rb532 in this series
as it was the only user of IMG_COMBINED variable so I changed them all in the
one go.

For the complete picture about upcoming chages and testing the proposed
changes as well, feel free to take a look at my fix-images[1] Git branch.

I'll continue sending remaining series once I build/run test them.

1. https://github.com/ynezz/openwrt/tree/upstream/fix-images

Petr Štetiar (5):
  build: image: Add IMG_ROOTFS and IMG_COMBINED variables
  build: image: Add pad-to and pad-rootfs-squashfs helpers
  build: image: Add variable for gzip-ext4-padded-squashfs
  rb532,x86: image: Use new IMG_COMBINED and IMG_ROOTFS vars
  x86: image: Fix small disk space in squashfs overlay

 include/image-commands.mk         |  3 +--
 include/image.mk                  | 32 ++++++++++++++++++++++++++++++++
 target/linux/rb532/image/Makefile |  2 +-
 target/linux/x86/image/Makefile   | 39 ++++++++++++++-------------------------
 4 files changed, 48 insertions(+), 28 deletions(-)

-- 
1.9.1


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list