[PATCH v2 36/41] bootmeth_extlinux: Move boot code into common file