From ca63d43696c133215ded2b534863bb51ab718690 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lallement Date: Fri, 9 Nov 2018 16:39:14 +0100 Subject: [PATCH] live-build/auto/build: Add size of the filesystems. This is used by the installer to calculate the minimum partition size to reserve for installation. The installer will have to sum all the sizes to compute the final size. Thank didrocks --- live-build/auto/build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/live-build/auto/build b/live-build/auto/build index 7e939c2c..0b0a46a0 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -492,6 +492,9 @@ EOF squashfs_f_manifest="${squashfs_f}.manifest" create_manifest "chroot.${_PASS}/" "${squashfs_f_manifest}" + squashfs_f_size="${squashfs_f}.size" + du -B 1 -s "chroot.${_PASS}/" | cut -f1 > "${squashfs_f_size}" + CURPASS=$(( CURPASS + 1 )) done fi