discover/boot: Add boot hooks