Skip to content

Commit

Permalink
tmpfiles: New crate
Browse files Browse the repository at this point in the history
This adapts code rewritten from rpm-ostree to synthesize
tmpfiles.d entries.

Signed-off-by: Colin Walters <walters@verbum.org>
  • Loading branch information
cgwalters committed Feb 11, 2025
1 parent c681850 commit 114ab01
Show file tree
Hide file tree
Showing 7 changed files with 649 additions and 2 deletions.
17 changes: 17 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ members = [
"utils",
"blockdev",
"xtask",
"tests-integration"
"tests-integration",
"tmpfiles"
]
resolver = "2"

Expand Down Expand Up @@ -59,6 +60,7 @@ similar-asserts = "1.5.0"
static_assertions = "1.1.0"
tempfile = "3.10.1"
tracing = "0.1.40"
thiserror = "2.0.11"
tokio = ">= 1.37.0"
tokio-util = { features = ["io-util"], version = "0.7.10" }

Expand Down
2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ xshell = { version = "0.2.6", optional = true }
uuid = { version = "1.8.0", features = ["v4"] }
tini = "1.3.0"
comfy-table = "7.1.1"
thiserror = "2.0.11"
thiserror = { workspace = true }

[dev-dependencies]
similar-asserts = { workspace = true }
Expand Down
24 changes: 24 additions & 0 deletions tmpfiles/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[package]
name = "bootc-tmpfiles"
version = "0.1.0"
license = "MIT OR Apache-2.0"
edition = "2021"
publish = false

[dependencies]
camino = { workspace = true }
fn-error-context = { workspace = true }
cap-std-ext = { version = "4" }
thiserror = { workspace = true }
tempfile = { workspace = true }
bootc-utils = { path = "../utils" }
rustix = { workspace = true }
uzers = "0.12"

[dev-dependencies]
anyhow = { workspace = true }
indoc = { workspace = true }
similar-asserts = { workspace = true }

[lints]
workspace = true
Empty file added tmpfiles/src/command.rs
Empty file.
Loading

0 comments on commit 114ab01

Please sign in to comment.