Prepare sauerkraut according to the instructions on the packet. I usually use the leftover portion from the day before.
Sauté the bacon and onions in the butter, add the sauerkraut and let it caramelize slightly. Now add the eggs over medium heat, whisk into scrambled eggs in the pan and season with the parmesan.
Season to taste with pepper, salt and possibly caraway seeds.