Problems building in tmpfs
When building in tmpfs build will fail. This is because the build currently relies on:
${PKGDIR}/pkg-cache
and ${IMGDIR}
existing. Which they may not when those options have been changed in the config file.
The attached patch corrects that by ensuring they exist after sourcing the configuration.
There is also an issue where $ROOTFS_IMG/rootfs_$ARCH/var/cache/pacman/pkg
is not being unmounted before the CHROOT is removed, which causes that cleanup step to fail.
And a third small issue where IMGNAME=Manjaro-ARM-$EDITION-$DEVICE-$VERSION
is defined, None of $EDITION
or $DEVICE
or $VERSION
has been yet set. So I moved those defs up to be under BRANCH
which makes sure that $IMGNAME
will get defaulted properly.
Please see attached proposed patch with corrections, from my downstream fork (https://gitlab.com/stevenj/manjaro-arm-tools): manjaro-arm-tools-tmpfs-fixes.patch