mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
Shut down the appliance cleanly
When guestfsd exits, or the user exits the virt-rescue shell, the init script exits which causes the kernel to panic. This isn't really a functional issue, as all useful work is done by this point. However, it does cause virt-rescue to display an unsightly error message. This patch causes the appliance to power off cleanly before the init script exits. Note it actually does a reboot rather than a poweroff. This is because ACPI is disabled in the appliance, meaning poweroff doesn't work, but qemu is configured not to restart on reboot.
This commit is contained in:
committed by
Richard Jones
parent
c0b38fbb27
commit
d3fc7e1e4d
@@ -110,8 +110,8 @@ else
|
||||
bash -i
|
||||
echo
|
||||
echo "virt-rescue: Syncing the disk now before exiting ..."
|
||||
echo "(Don't worry if you see a 'Kernel panic' message below)"
|
||||
echo
|
||||
fi
|
||||
|
||||
sync
|
||||
/sbin/reboot -f
|
||||
|
||||
Reference in New Issue
Block a user