Skip to content

Commit

Permalink
feat: add slice definitions file for base-passwd
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro committed Jul 12, 2023
1 parent 93e8c18 commit d09a399
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions slices/base-passwd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package: base-passwd

slices:
data:
contents:
/usr/share/base-passwd/group.master: {until: mutate}
/usr/share/base-passwd/passwd.master: {until: mutate}
/etc/group: {text: FIXME, mutable: true}
/etc/passwd: {text: FIXME, mutable: true}
mutate: |
gr = content.read("/usr/share/base-passwd/group.master")
content.write("/etc/group", gr)
pw = content.read("/usr/share/base-passwd/passwd.master")
content.write("/etc/passwd", pw)

0 comments on commit d09a399

Please sign in to comment.