The issue was the step # while [ ! -d /target/etc/default/grub.d ]; do sleep 1; done; echo "GRUB_ENABLE_CRYPTODISK=y" > /target/etc/default/grub.d/local.cfg
was not started in time.
After doing it again it worked.
The issue was the step etc/default/ grub.d ]; do sleep 1; done; echo "GRUB_ENABLE_ CRYPTODISK= y" > /target/ etc/default/ grub.d/ local.cfg
# while [ ! -d /target/
was not started in time.
After doing it again it worked.