do update-grub always, but grub-install only during  installation
move first grub-install into else part
start sshd very early

if FAI_FLAGS=sshd (or flag_sshd=1) is added to the kernel command
line, start sshd early. Otherwise get config space (maybe set
variables) and then start sshd