Skip to content

Commit

Permalink
artix: ensure that /etc/environment always read
Browse files Browse the repository at this point in the history
Adjust PAM configuration
  • Loading branch information
sylirre committed Oct 25, 2023
1 parent 6649dd6 commit 7a3de8b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions distro-build/artix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,13 @@ write_plugin() {
TARBALL_URL['aarch64']="${GIT_RELEASE_URL}/artix-aarch64-pd-${CURRENT_VERSION}.tar.xz"
TARBALL_SHA256['aarch64']="$(sha256sum "${ROOTFS_DIR}/artix-aarch64-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')"
distro_setup() {
${TAB}# Fix environment variables on login or su.
${TAB}local f
${TAB}for f in su su-l system-local-login system-remote-login; do
${TAB}${TAB}echo "session required pam_env.so readenv=1" >> ./etc/pam.d/"${f}"
${TAB}done
}
EOF
}
8 changes: 8 additions & 0 deletions distro-plugins/artix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,11 @@ DISTRO_COMMENT="Currently available only for AArch64."

TARBALL_URL['aarch64']="https://github.com/termux/proot-distro/releases/download/v3.18.1/artix-aarch64-pd-v3.18.1.tar.xz"
TARBALL_SHA256['aarch64']="9801031864da6bc9dc69293695797f8aba7866c273bb7403f95c4e70be987936"

distro_setup() {
# Fix environment variables on login or su.
local f
for f in su su-l system-local-login system-remote-login; do
echo "session required pam_env.so readenv=1" >> ./etc/pam.d/"${f}"
done
}

0 comments on commit 7a3de8b

Please sign in to comment.