Reading here: https://lists.debian.org/debian-live/2020/05/msg00006.html
says that You create a small "hook" script in your config directory which does text replacement on the binary/boot/grub/menu.list file. 2. You execute the build. I don't know how to create it