Skip to content

Commit e7889a6

Browse files
committed
WIP: rust: Add sysusers code
See #49
1 parent d6e5bb8 commit e7889a6

15 files changed

+1215
-68
lines changed

docs/manual/treefile.md

+4
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ It supports the following parameters:
8888

8989
Note this does not alter the RPM database, so `rpm -V` will complain.
9090

91+
* `sysusers`: boolean, optional: Defaults to `false`. Enable generation of
92+
systemd sysusers.d entries based on `useradd` invocations. If enabled,
93+
this overrides `preserve-passwd`. It also obsoletes `check-passwd`.
94+
9195
* `preserve-passwd`: boolean, optional: Defaults to `true`. If enabled,
9296
and `check-passwd` has a type other than file, copy the `/etc/passwd` (and
9397
`/usr/lib/passwd`) files from the previous commit if they exist. If

rust/src/lib.rs

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
extern crate c_utf8;
20+
extern crate clap;
2021
extern crate curl;
2122
#[macro_use]
2223
extern crate failure;
@@ -50,3 +51,5 @@ pub use journal::*;
5051
mod utils;
5152
pub use utils::*;
5253
mod openat_utils;
54+
mod sysusers;
55+
pub use sysusers::*;

0 commit comments

Comments
 (0)