Commit 0964955d authored by Jean-Philippe Brucker's avatar Jean-Philippe Brucker Committed by Will Deacon
Browse files

guest: sync disk before shutting down

sync() should be called before reboot(RB_AUTOBOOT), otherwise data written
to disks might be lost.

Signed-off-by: Jean-Philippe Brucker's avatarJean-Philippe Brucker <>
Signed-off-by: default avatarWill Deacon <>
parent 5c5cae75
......@@ -72,6 +72,7 @@ int main(int argc, char *argv[])
} while (corpse != child);
printf("Init failed: %s\n", strerror(errno));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment