Commit Graph

7 Commits

Author SHA1 Message Date
Kamil Koczurek 873062c1c2 Document missing support for non-utf8 paths 2024-09-14 22:41:58 +02:00
Kamil Koczurek f0dec135b9 Add symlink support
* Implement symlinks
  * Initfs only has links with absolute paths.
  * Relative links are assumed to be relative to link location.
  * Absolute paths must point into the archived location. E.g. if we
    archive /home/foo/data and wish the resultant link to point to
    /scheme/rand, then the absolute link must be
    /home/foo/data/scheme/rand.
* Move archive_common to a crate within the workspace -- Rust doesn't
  seem to accept #[path(..)] attributes with `..` segments anymore so
  tests wouldn't build on my machine.
* Improve the test to assert complete filesystem structure.
* Bump to edition 2021
* cargo fmt & clippy
2024-09-14 12:17:44 +02:00
bjorn3 12ed3151f3 Add size to the initfs header 2024-03-12 14:13:49 +01:00
bjorn3 7978d794f7 Encode bootstrap code entrypoint in the initfs header 2024-03-11 12:16:33 +01:00
bjorn3 ada6cfc973 Allow embedding bootstrap code into the initfs blob
This may in the future allow booting using non-redox specific bootloaders.
2024-03-10 19:28:09 +01:00
bjorn3 56642539bc Update clap to v4 2024-03-10 17:25:23 +01:00
4lDO2 89b8fb8984 Refactor into a separate library and tools crate. 2022-03-26 18:15:49 +01:00