Dice the onion and potatoes and sauté them in oil, add the garlic. Fry everything over medium heat. Kassler and rosemary with it. Continue frying, season with caraway seeds, chilli and pepper, add sauerkraut and pineapple with juice and sprinkle with a little sugar if necessary. Let it simmer slowly for about 20 minutes.