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: default avatarJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 5c5cae75
......@@ -72,6 +72,7 @@ int main(int argc, char *argv[])
} while (corpse != child);
}
sync();
reboot(RB_AUTOBOOT);
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