builder: build: bootstrap.py: reload user database before filesystem

Signed-off-by: BigfootACA <bigfoot@classfun.cn>
This commit is contained in:
BigfootACA 2024-05-31 18:21:28 +08:00
parent 9b621831c4
commit 3a5b7d74ad

View File

@ -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)