From: Zbigniew Jędrzejewski-Szmek Date: Sun, 29 Oct 2023 16:14:28 +0000 (+0100) Subject: Put uid before gid X-Git-Tag: v19~33^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d288fb4387bcab2677c132e086e1f3fcd011b54;p=thirdparty%2Fmkosi.git Put uid before gid --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index ffbd76ee9..21bd8af6c 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -379,8 +379,8 @@ def run_prepare_scripts(state: MkosiState, build: bool) -> None: BUILDROOT=str(state.root), CHROOT_SCRIPT="/work/prepare", CHROOT_SRCDIR="/work/src", - MKOSI_GID=str(INVOKING_USER.gid), MKOSI_UID=str(INVOKING_USER.uid), + MKOSI_GID=str(INVOKING_USER.gid), SCRIPT="/work/prepare", SRCDIR=str(Path.cwd()), WITH_DOCS=one_zero(state.config.with_docs), @@ -439,8 +439,8 @@ def run_build_scripts(state: MkosiState) -> None: CHROOT_SCRIPT="/work/build-script", CHROOT_SRCDIR="/work/src", DESTDIR=str(state.install_dir), - MKOSI_GID=str(INVOKING_USER.gid), MKOSI_UID=str(INVOKING_USER.uid), + MKOSI_GID=str(INVOKING_USER.gid), OUTPUTDIR=str(state.staging), SCRIPT="/work/build-script", SRCDIR=str(Path.cwd()), @@ -507,8 +507,8 @@ def run_postinst_scripts(state: MkosiState) -> None: CHROOT_OUTPUTDIR="/work/out", CHROOT_SCRIPT="/work/postinst", CHROOT_SRCDIR="/work/src", - MKOSI_GID=str(INVOKING_USER.gid), MKOSI_UID=str(INVOKING_USER.uid), + MKOSI_GID=str(INVOKING_USER.gid), OUTPUTDIR=str(state.staging), SCRIPT="/work/postinst", SRCDIR=str(Path.cwd()), @@ -556,8 +556,8 @@ def run_finalize_scripts(state: MkosiState) -> None: CHROOT_OUTPUTDIR="/work/out", CHROOT_SCRIPT="/work/finalize", CHROOT_SRCDIR="/work/src", - MKOSI_GID=str(INVOKING_USER.gid), MKOSI_UID=str(INVOKING_USER.uid), + MKOSI_GID=str(INVOKING_USER.gid), OUTPUTDIR=str(state.staging), SCRIPT="/work/finalize", SRCDIR=str(Path.cwd()),