auto/build: Order generated squashfs filesystems

sil2100/core18-pi3-arm64
Jean-Baptiste Lallement 6 years ago committed by Jean-Baptiste Lallement
parent ce973ba07b
commit b6287916c2

@ -480,10 +480,11 @@ EOF
lb binary "$@" lb binary "$@"
# Create layered squashfs system # Create layered squashfs system
CURPASS=1
if [ "${IMAGEFORMAT:-}" = live-layered ]; then if [ "${IMAGEFORMAT:-}" = live-layered ]; then
for _PASS in $PASSES for _PASS in $PASSES
do do
squashfs_f="${PWD}/livecd.${PROJECT}.${_PASS}.squashfs" squashfs_f="${PWD}/livecd.${PROJECT}.$(printf "%02g" $CURPASS)-${_PASS}.squashfs"
(cd "chroot.${_PASS}/" && (cd "chroot.${_PASS}/" &&
mksquashfs . ${squashfs_f} \ mksquashfs . ${squashfs_f} \
@ -491,6 +492,7 @@ EOF
squashfs_f_manifest="${squashfs_f}.manifest" squashfs_f_manifest="${squashfs_f}.manifest"
create_manifest "chroot.${_PASS}/" "${squashfs_f_manifest}" create_manifest "chroot.${_PASS}/" "${squashfs_f_manifest}"
CURPASS=$(( CURPASS + 1 ))
done done
fi fi

Loading…
Cancel
Save