sync before calling halt. systemd is not syncing anymore leading to corrupt build results.