In CustomPiOS/src/modules/kernel/end_chroot_script, the lines 53 and 59 have badly formatted second test, instead of:
if [ "$KERNEL_TYPE" == "both" ] || ["$KERNEL_TYPE" == "v6" ]; then
it should read:
if [ "$KERNEL_TYPE" == "both" ] || [ "$KERNEL_TYPE" == "v6" ]; then
Note the space between the second [ and ".
In CustomPiOS/src/modules/kernel/end_chroot_script, the lines 53 and 59 have badly formatted second test, instead of:
if [ "$KERNEL_TYPE" == "both" ] || ["$KERNEL_TYPE" == "v6" ]; then
it should read:if [ "$KERNEL_TYPE" == "both" ] || [ "$KERNEL_TYPE" == "v6" ]; then
Note the space between the second [ and ".