mikaku / Fiwix

A UNIX-like kernel for the i386 architecture
https://www.fiwix.org
Other
401 stars 32 forks source link

Sync drives on kernel stop #70

Closed rick-masters closed 6 months ago

rick-masters commented 6 months ago

With live-bootstrap running on Fiwix there are occasionally errors that cause the build process to exit with an error. Since live-bootstrap runs as init, and will be the last process to exit, the kernel will stop. For debugging purposes, sometimes I extract the initrd file system from memory and examine it. This can be done from the qemu console using the pmemsave command.

The problem is that the file system will not be sync'd and so there can be missing files or output. It would be helpful if the file systems were sync'd before stop_kernel().

I have been using the forthcoming PR in my own testing for many months and it works well for me.

mikaku commented 6 months ago

I have been using the forthcoming PR in my own testing for many months and it works well for me.

Thank you very much.