Merge pull request #688 from bgilbert/yubikey

enter_chroot: Fix ownership of /run/user/UID
This commit is contained in:
Benjamin Gilbert 2017-05-31 14:31:57 -07:00 committed by GitHub
commit dacdc004fd

View File

@ -232,8 +232,8 @@ setup_env() {
if [[ -d /run/shm && ! -L /run/shm ]]; then
setup_mount /run/shm "--bind" /run/shm
fi
mkdir -p /run/user/${SUDO_UID}
chown ${SUDO_UID}:${SUDO_GID} /run/user/${SUDO_UID}
mkdir -p "${MOUNTED_PATH}/run/user/${SUDO_UID}"
chown ${SUDO_UID}:${SUDO_GID} "${MOUNTED_PATH}/run/user/${SUDO_UID}"
# Do this early as it's slow and only needs basic mounts (above).
generate_locales &