bootdevice: move code about bootorder from vl.c to bootdevice.c