mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-23 14:41:31 +02:00
Merge pull request #688 from bgilbert/yubikey
enter_chroot: Fix ownership of /run/user/UID
This commit is contained in:
commit
dacdc004fd
@ -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 &
|
||||
|
Loading…
x
Reference in New Issue
Block a user