I am working on a battery powered Raspberry Pi project. When the batteries are charged (enough), the Pi and all the connected peripherals boot and run correctly. The issue I'm facing is when the batteries get low and I try to boot. The Pi begins to boot, then the USB peripherals try to fire up causing a voltage dip, I get a low voltage warning and the Pi reboots. This boot -> low voltage -> reboot cycle then continues indefinitely until I unplug the batteries. If it can't boot, I don't want it to even try to continue booting after it gets the low voltage warning. Is there a way to configure the raspberry pi to CANCEL the boot sequence and shut down/power off if a low voltage warning occurs during boot? Thus preventing this horrible cycle.