$ git clone -n https://gitee.com/src-anolis-os/authselect.git /var/lib/mock/dist-an23-build-python3.11-381985-71833/root/chroot_tmpdir/scmroot/authselect Cloning into '/var/lib/mock/dist-an23-build-python3.11-381985-71833/root/chroot_tmpdir/scmroot/authselect'... $ git fetch origin a23:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/authselect * [new branch] a23 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 2a9e127 fix: su to a common user in chroot Solution: Set sssd as the default profile (same with an23 minimal installation). Use lua script to avoid 'rm' or 'touch' command not found when authselect-libs installed before coreutils.