You overcome this by providing a manual ignition source to light the burner. Simply use a long stick match or lighter and it’s business as usual.
However, gas delivery systems may utilize electricity to operate natural gas compressors and underground storage. Extraction facilities also might rely on electricity to operate. If a power outage strikes at the heart of the gas delivery system itself, this way of cooking could be disrupted entirely. So, while it’s a great first attempt at cooking during a power outage, having alternative go-to cooking methods is a must.