Skip to content

Commit

Permalink
WIP: rust: Add sysusers code
Browse files Browse the repository at this point in the history
See #49
  • Loading branch information
cgwalters committed Feb 25, 2019
1 parent d6e5bb8 commit e7889a6
Show file tree
Hide file tree
Showing 15 changed files with 1,215 additions and 68 deletions.
4 changes: 4 additions & 0 deletions docs/manual/treefile.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ It supports the following parameters:

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

* `sysusers`: boolean, optional: Defaults to `false`. Enable generation of
systemd sysusers.d entries based on `useradd` invocations. If enabled,
this overrides `preserve-passwd`. It also obsoletes `check-passwd`.

* `preserve-passwd`: boolean, optional: Defaults to `true`. If enabled,
and `check-passwd` has a type other than file, copy the `/etc/passwd` (and
`/usr/lib/passwd`) files from the previous commit if they exist. If
Expand Down
3 changes: 3 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

extern crate c_utf8;
extern crate clap;
extern crate curl;
#[macro_use]
extern crate failure;
Expand Down Expand Up @@ -50,3 +51,5 @@ pub use journal::*;
mod utils;
pub use utils::*;
mod openat_utils;
mod sysusers;
pub use sysusers::*;
Loading

0 comments on commit e7889a6

Please sign in to comment.