[PATCH v2 11/16] pxe: Refactor to reduce the size of label_boot()