Move /etc/group generation to the installer

This ensures that the gid's for the auto-generated user groups stay in
sync with the gid in /etc/passwd. It also makes it easier to evolve the
format of /etc/group in the future.
This commit is contained in:
bjorn3 2024-01-06 17:26:02 +01:00
parent d82216bcca
commit a17c81df0c
2 changed files with 6 additions and 10 deletions

View file

@ -105,15 +105,6 @@ path = "/dev/stderr"
data = "libc:stderr"
symlink = true
# Group settings
[[files]]
path = "/etc/group"
data = """
root;0;root
user;1000;user
sudo;1;user
"""
# User settings
[users.root]
password = "password"
@ -125,3 +116,8 @@ home = "/root"
[users.user]
# Password is unset
password = ""
# Group settings
[groups.sudo]
gid = 1
members = ["user"]

@ -1 +1 @@
Subproject commit 6a4802d55631fee7a8de07b4f0f87ebd7f2f115b
Subproject commit 7a7790e9bd2db0cf8ac07192ba3bba2e25673dbe