First thing I'd check is the trunk lid latch/lock. Pretty sure there's a built-in microswitch that controls the lights and it might be faulty. If it's faulty, you probably need to buy the whole lock/latch, though.
A forum community dedicated to BMW owners and enthusiasts. Come join the discussion about Bimmerfest events, production numbers, programming, performance, modifications, classifieds, troubleshooting, maintenance, and more! Bringing the BMW community together.