Commit Graph

9 Commits

Author SHA1 Message Date
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
4lDO2 65cf406b7d Future-proof: repr(packed) => repr(C, packed). 2024-09-08 21:09:22 +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
4lDO2 89b8fb8984 Refactor into a separate library and tools crate. 2022-03-26 18:15:49 +01:00
4lDO2 3b85a1d887 Finish kernel-facing API. 2021-02-20 14:17:40 +01:00
4lDO2 672a92bb51 Create a skeleton for the initfs API for kernel. 2021-02-20 13:59:51 +01:00
4lDO2 8b5474189d WIP: (probably) complete basic initfs-ar util. 2021-02-20 11:51:33 +01:00
4lDO2 2eefa1a16f Initial Commit 2021-02-19 23:29:04 +01:00