Linux guest graceful shutdown in Hyper-V

What mechanism Hyper-V use to signal a Linux guest to gracefully shut down?

Somehow CoreOS does gracefully shut down, but another Linux doesn't (it is just abruptly powered off)


I figured it out. drivers/hv/hv_util.c calls orderly_poweroff() from kernel/reboot.c which subsequently fails to find /sbin/poweroff and does only a minimal cleanup.