Commit Graph

11 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
bjorn3 7978d794f7 Encode bootstrap code entrypoint in the initfs header 2024-03-11 12:16:33 +01:00
bjorn3 30568c5ee0 Unconditionally use no_std
And use `extern crate std;` when libstd is necessary.
2024-03-10 17:26:35 +01:00
4lDO2 89b8fb8984 Refactor into a separate library and tools crate. 2022-03-26 18:15:49 +01:00
4lDO2 08d18160ee Fix overwrite of image while writing inodes. 2021-07-02 14:22:35 +02:00
4lDO2 312499d042 Derive Clone and Copy for Entry. 2021-06-30 12:33:28 +02:00
4lDO2 0a41ea5b8f Implement more traits for Inode. 2021-06-30 12:13:19 +02:00
4lDO2 811f58cc9a Add #![no_std]. 2021-06-29 21:09:43 +02: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 2eefa1a16f Initial Commit 2021-02-19 23:29:04 +01:00