In a large stockpot over medium-high heat, add the pork shoulder, ribs, trotter, onion, garlic, salt, bay leaves, peppercorns, and enough water to cover meat by 1 inch. Bring to a boil, then immediately reduce heat to a gentle simmer, using a lid to help regulate temperature as needed. Skim and discard any impurities that rise to the top. Continue to simmer for several hours, until meat is tender and falling off the bones.
Remove the pork pieces to a platter. Once cool enough to handle, separate the meat, discarding bones and skin. Strain the broth into a very large bowl; cool to room temperature. Chill in the refrigerator for several hours, or overnight, until fat rises to the top of the bowl and congeals. Remove the fat and reserve for another use.
Cut chiles in half; discard seeds and stems. In a small saucepan, warm 2 cups of water over medium-low heat; turn off heat when the water is hot. Meanwhile, warm a dry comal or skillet over medium heat; toast the chiles quickly, taking care not to let the chiles burn. Soak the toasted chiles in the pan of warm water for 15 minutes.
In a blender, combine the chiles, onion, garlic, and enough of the strained chile-soaking liquid to allow the blender blades to move. Blend well, scraping down the paste as needed. Use a wooden spoon to push the mixture through a wide-mesh sieve into a bowl, discarding skins and seeds.
In a large pot over medium heat, warm the oil until hot, 2 to 3 minutes. Add the chile paste and stir immediately. Reduce heat to medium-low; cook, stirring frequently, for 5 to 10 minutes. Taste and adjust seasoning, as desired.
To the pot with the chile paste, add the reserved pork meat and the drained cooked hominy. (If you are using canned hominy, rinse the kernels before using and discard the liquid.) You can break up large pieces of meat as needed, but generally they’ll do this on their own.
Slowly add about 6 cups of the broth, enough to make a soupy stew, stirring constantly. If the pozole is not soupy enough to your liking, slowly add the reserved hominy-cooking liquid (or tap water, if you used canned hominy) or more broth, until you reach the desired consistency.
Continue cooking, stirring occasionally, until all of the ingredients are warmed through, about 20 minutes (or longer if you’ve pulled your pork and corn from the refrigerator).
Ladle into bowls and serve with your preferred garnishes.
