Skip to content

Commit 3f48f54

Browse files
committed
tmpfiles: New crate
This adapts code rewritten from rpm-ostree to synthesize tmpfiles.d entries. Signed-off-by: Colin Walters <[email protected]>
1 parent c34b5e5 commit 3f48f54

File tree

6 files changed

+672
-2
lines changed

6 files changed

+672
-2
lines changed

Cargo.lock

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ members = [
77
"utils",
88
"blockdev",
99
"xtask",
10-
"tests-integration"
10+
"tests-integration",
11+
"tmpfiles"
1112
]
1213
resolver = "2"
1314

@@ -59,6 +60,7 @@ similar-asserts = "1.5.0"
5960
static_assertions = "1.1.0"
6061
tempfile = "3.10.1"
6162
tracing = "0.1.40"
63+
thiserror = "2.0.11"
6264
tokio = ">= 1.37.0"
6365
tokio-util = { features = ["io-util"], version = "0.7.10" }
6466

lib/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ xshell = { version = "0.2.6", optional = true }
5151
uuid = { version = "1.8.0", features = ["v4"] }
5252
tini = "1.3.0"
5353
comfy-table = "7.1.1"
54-
thiserror = "2.0.11"
54+
thiserror = { workspace = true }
5555

5656
[dev-dependencies]
5757
similar-asserts = { workspace = true }

tmpfiles/Cargo.toml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[package]
2+
name = "bootc-tmpfiles"
3+
version = "0.1.0"
4+
license = "MIT OR Apache-2.0"
5+
edition = "2021"
6+
publish = false
7+
8+
[dependencies]
9+
camino = { workspace = true }
10+
fn-error-context = { workspace = true }
11+
cap-std-ext = { version = "4" }
12+
thiserror = { workspace = true }
13+
tempfile = { workspace = true }
14+
bootc-utils = { path = "../utils" }
15+
rustix = { workspace = true }
16+
uzers = "0.12"
17+
18+
[dev-dependencies]
19+
anyhow = { workspace = true }
20+
indoc = { workspace = true }
21+
similar-asserts = { workspace = true }
22+
23+
[lints]
24+
workspace = true

tmpfiles/src/command.rs

Whitespace-only changes.

0 commit comments

Comments
 (0)