Build from from rootfs.tar
system files
#978
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Starts support to allow building firmware from a
rootfs.tar
tarball file more efficiently in Elixir, rather than relying on bash scripts to unsquash, combine, and resquash an FS.The
mix firmware
task was due for a good refactoring, so it looks like a lot. The old way of building is maintained for the typicalrootfs.squashfs
file that systems have traditionally provided.It also adjusts the build process to allow using EROFS instead of squashfs when making the firmware
Note
This adds
config :nerves, :firmware, fs_type: :erofs
to specify to use EROFS. If there is a preferred option name and/or location, let me knowOther pieces to still consider:
scrub-otp-release.sh
)*.img
firmware file like the end ofrel2fw.sh
echo
statements fromrel2fw.sh