fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
286 stars 26 forks source link

Replace Fiwix filelist with parsing builder-hex0's FS structures #432

Closed Googulator closed 5 months ago

Googulator commented 5 months ago

And while we're at it, use a more sustainable way of getting the address of the next file to be written to.

Since builder-hex0 doesn't distinguish directories from zero-length files, this has a limitation that it won't copy any zero-length files or empty directories. Only one such file is important for the bootstrap process (mes/config.h), which is recreated using an improve step.

Depends on https://github.com/ironmeld/builder-hex0/pull/11; the builder-hex0 commit referenced in the submodule is the one in that PR.

Googulator commented 5 months ago

When combined with #434, this should work on bare metal, minus the missing checksum for m4-1.4.19 at the end (bypassable via --update-checksums). Tested up to get_network for now, full test is ongoing.

Googulator commented 5 months ago

Full test done - caught #435 upon rebooting, but otherwise fine.