Netboot cleanup

Depends on https://github.com/mjg59/shim/pull/11.

Various fixes identified during review of the netboot code.