@ -47,7 +47,7 @@ build_layered_squashfs() {
create_manifest "chroot" "${squashfs_f_manifest}.full"
create_manifest "chroot" "${squashfs_f_manifest}.full"
# Delta manifest
# Delta manifest
diff -NU0 ${PWD}/livecd.${PROJECT}.${prefix} ${prevpass}.manifest.full ${squashfs_f_manifest}.full|grep -v ^@ > $squashfs_f_manifest
diff -U0 ${PWD}/livecd.${PROJECT}.[0-9]{2..2}- ${prevpass}.manifest.full ${squashfs_f_manifest}.full|grep -v ^@ > $squashfs_f_manifest
squashfs_f_size="${base}.size"
squashfs_f_size="${base}.size"
du -B 1 -s "chroot.${pass}/" | cut -f1 > "${squashfs_f_size}"
du -B 1 -s "chroot.${pass}/" | cut -f1 > "${squashfs_f_size}"
@ -539,13 +539,13 @@ EOF
if [ -n "${PASSES}" ]; then
if [ -n "${PASSES}" ]; then
CURPASS=1
CURPASS=1
PREVPASS=""
PREVPASS=""
PREFIX=""
PASSP REFIX=""
LOWER_LAYERS=""
LOWER_LAYERS=""
for _PASS in $PASSES
for _PASS in $PASSES
do
do
PREFIX="$(printf "%02g" $CURPASS)-"
PASSP REFIX="$(printf "%02g" $CURPASS)-"
build_layered_squashfs "${_PASS}" "${PREVPASS}" "$PREFIX" ${LOWER_LAYERS}
build_layered_squashfs "${_PASS}" "${PREVPASS}" "$PASSP REFIX" ${LOWER_LAYERS}
LOWER_LAYERS="chroot.${_PASS}:$LOWER_LAYERS"
LOWER_LAYERS="chroot.${_PASS}:$LOWER_LAYERS"
LOWER_LAYERS="${LOWER_LAYERS%:}"
LOWER_LAYERS="${LOWER_LAYERS%:}"
@ -553,8 +553,9 @@ EOF
CURPASS=$(( CURPASS + 1 ))
CURPASS=$(( CURPASS + 1 ))
done
done
# Full ISO manifest
# Full ISO manifest & size from last PASS
cp "${PWD}/livecd.${PROJECT}.${PREFIX}${_PASS}.manifest.full" livecd.${PROJECT}.manifest
cp "${PWD}/livecd.${PROJECT}.${PASSPREFIX}${_PASS}.size" "binary/$INITFS/filesystem.size"
cp "${PWD}/livecd.${PROJECT}.${PASSPREFIX}${_PASS}.manifest.full" "binary/$INITFS/filesystem.manifest"
fi
fi
touch binary.success
touch binary.success