Heat the olive oil in a large pot. Cook garlic and onions until softened, then add beef and brown it thoroughly, breaking it up as it cooks.
Pour in the red wine and simmer briefly. Add tomatoes, bouillon, tomato paste, sugar, bay leaf, cinnamon, cinnamon stick, cloves, salt, and pepper.
Simmer the meat sauce uncovered for about 45 minutes, stirring occasionally, until thick. Remove the bay leaf and cinnamon stick, then cool the sauce.
Melt the butter in a saucepan. Whisk in flour and cook briefly, then gradually whisk in milk until smooth and thickened.
Season the béchamel with nutmeg and salt. Remove from heat, whisk in the shredded Kefalotyri and egg yolks, and keep it warm.
Boil the pasta in salted water until just tender. Drain, toss with feta and egg whites, and let excess steam escape.
Heat the oven to 180°C. Arrange the pasta in a deep baking dish, spoon the cooled meat sauce over it, and spread béchamel on top.
Sprinkle with the remaining Kefalotyri. Bake for about 45 minutes until bubbling and golden.
Rest the pastitsio for 15 minutes before slicing so the layers set cleanly.