cleanup: refactor populate_boot

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>