From d09a399a510389d50995b0c9ac2c21142fe35601 Mon Sep 17 00:00:00 2001 From: Cristovao Cordeiro Date: Wed, 12 Jul 2023 12:36:18 +0200 Subject: [PATCH] feat: add slice definitions file for base-passwd --- slices/base-passwd.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 slices/base-passwd.yaml diff --git a/slices/base-passwd.yaml b/slices/base-passwd.yaml new file mode 100644 index 000000000..0e6d4e3c4 --- /dev/null +++ b/slices/base-passwd.yaml @@ -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)