I am following this OS tutorial. It uses grub legacy which is outdated (I use ubuntu 22.04 and have grub 2 installed by default).
The whole directory structure and project looks like this: https://github.com/AlgorithMan-de/wyoos/tree/b440da72b6403d6cde728b6657e61aed8fd3c682
the important part...