Compare commits

..

No commits in common. "3a5b7d74ada53615b0eb564271752b2eb489448f" and "be0624f9475caf11dbd61e360fe1f426c8e16514" have entirely different histories.

2 changed files with 7 additions and 4 deletions

View File

@ -112,12 +112,12 @@ def build_rootfs(ctx: ArchBuilderContext):
# real install all packages
pacman_build.proc_pacman(ctx, pacman)
# reload user databases after install packages
ctx.reload_passwd()
# running add files hooks (for user settings)
filesystem.add_files_all(ctx, "pre-user")
# reload user databases after install packages
ctx.reload_passwd()
# create custom users and groups
user.proc_usergroup(ctx)

View File

@ -71,5 +71,8 @@ def parse_user_from(
gid = parse_usergroup_from(ctx, node, True, gid)
if gid == -1:
user = ctx.passwd.lookup_uid(uid)
gid = user.gid if user else uid
if user is None: raise ArchBuilderConfigError(
f"user {user} not found"
)
gid = user.gid
return uid, gid