fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
501 stars 35 forks source link

Update Fiwix to 1.5.0-lb1 #396

Closed rick-masters closed 9 months ago

rick-masters commented 9 months ago

All patches for Fiwix have been pulled into the primary Fiwix github repo. We can stop using the rick-masters fork and pull directly from https://github.com/mikaku/Fiwix

There is one significant change from the fork that should be explained.

In the fork, the madvise system call was implemented as an empty stub just so madvise did not return an error when called. This was to workaround a bug in musl 1.1.24 which would call madvise internally and then incorrectly propagate an error from the syscall back to the application program (in errno), causing a failure. It was ultimately decided that it was more appropriate to patch musl than workaround the problem in Fiwix. More details can be found here. The fix in the forthcoming PR mimics how musl 1.2.4 was fixed to ignore an error from madvise.

As a result of patching musl-1.1.24 many packages have new checksums in the forthcoming PR.

There are also changes to the way Fiwix is built. Rather than passing many custom preprocessor definitions on the compiler command line, Fiwix now supports using custom header files to customize the kernel and so our definitions have been moved to these header files.