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 5ab44db
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions distro-build/artix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,10 @@ 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}echo "session required pam_env.so readenv=1" >> ./etc/pam.d/system-auth
}
EOF
}
5 changes: 5 additions & 0 deletions distro-plugins/artix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,8 @@ 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.
echo "session required pam_env.so readenv=1" >> ./etc/pam.d/system-auth
}

0 comments on commit 5ab44db

Please sign in to comment.