@Zatharalex can provide more details, but so far, I see that he has patch inside Turris Build repository:
https://gitlab.nic.cz/turris/os/build/-/commit/a4c5035f0246bef25877dfe79207301539c47c96
Would be great, if it can be solved here instead of patching it downstream. :)