Skip to content

Commit

Permalink
fedora: 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 b45a9ea commit d57d2a5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions distro-build/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,11 @@ write_plugin() {
TARBALL_SHA256['aarch64']="$(sha256sum "${ROOTFS_DIR}/fedora-aarch64-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')"
TARBALL_URL['x86_64']="${GIT_RELEASE_URL}/fedora-x86_64-pd-${CURRENT_VERSION}.tar.xz"
TARBALL_SHA256['x86_64']="$(sha256sum "${ROOTFS_DIR}/fedora-x86_64-pd-${CURRENT_VERSION}.tar.xz" | awk '{ print $1}')"
distro_setup() {
${TAB}# Fix environment variables on login or su.
${TAB}run_proot_cmd authselect opt-out
${TAB}echo "session required pam_env.so readenv=1" | run_proot_cmd tee -a /etc/pam.d/system-auth >/dev/null
}
EOF
}
6 changes: 6 additions & 0 deletions distro-plugins/fedora.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ TARBALL_URL['aarch64']="https://github.com/termux/proot-distro/releases/download
TARBALL_SHA256['aarch64']="d6aa1a51f8d1f11a3388ed32a30643410345d5c8d22cb7c33e36cfa60942bbb1"
TARBALL_URL['x86_64']="https://github.com/termux/proot-distro/releases/download/v3.15.2/fedora-x86_64-pd-v3.15.2.tar.xz"
TARBALL_SHA256['x86_64']="167732ad9389523ca88ca9fdba470413322be15b3110845fa865e17b81e3ffaa"

distro_setup() {
# Fix environment variables on login or su.
run_proot_cmd authselect opt-out
echo "session required pam_env.so readenv=1" | run_proot_cmd tee -a /etc/pam.d/system-auth >/dev/null
}

0 comments on commit d57d2a5

Please sign in to comment.