mirror of
https://github.com/BigfootACA/arch-image-builder.git
synced 2024-09-21 13:20:53 +08:00
Compare commits
2 Commits
be0624f947
...
3a5b7d74ad
Author | SHA1 | Date | |
---|---|---|---|
3a5b7d74ad | |||
9b621831c4 |
@ -112,12 +112,12 @@ def build_rootfs(ctx: ArchBuilderContext):
|
||||
# real install all packages
|
||||
pacman_build.proc_pacman(ctx, pacman)
|
||||
|
||||
# running add files hooks (for user settings)
|
||||
filesystem.add_files_all(ctx, "pre-user")
|
||||
|
||||
# reload user databases after install packages
|
||||
ctx.reload_passwd()
|
||||
|
||||
# running add files hooks (for user settings)
|
||||
filesystem.add_files_all(ctx, "pre-user")
|
||||
|
||||
# create custom users and groups
|
||||
user.proc_usergroup(ctx)
|
||||
|
||||
|
@ -71,8 +71,5 @@ def parse_user_from(
|
||||
gid = parse_usergroup_from(ctx, node, True, gid)
|
||||
if gid == -1:
|
||||
user = ctx.passwd.lookup_uid(uid)
|
||||
if user is None: raise ArchBuilderConfigError(
|
||||
f"user {user} not found"
|
||||
)
|
||||
gid = user.gid
|
||||
gid = user.gid if user else uid
|
||||
return uid, gid
|
||||
|
Loading…
Reference in New Issue
Block a user