This allows to flash correct partition when having 2 installations of pmOS. This will also avoid flashing kernel image when using U-Boot.