Bind /etc/localtime

The timezone for applications running using Conty will be the same as on the host system.
This commit is contained in:
Kron4ek 2021-05-28 14:42:43 +05:00 committed by GitHub
parent 8fc39a132a
commit 334dffaa6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,14 +3,13 @@
## Dependencies: bash fuse2 tar coreutils
# Prevent launching as root
if [ -z "$ALLOW_ROOT" ]; then
if [ $EUID = 0 ]; then
echo "Do not run this script as root!"
echo
echo "If you really need to run it as root, set ALLOW_ROOT env variable."
if [ $EUID = 0 ] && [ -z "$ALLOW_ROOT" ]; then
echo "Do not run this script as root!"
echo
echo "If you really need to run it as root and you know what you are doing,"
echo "set ALLOW_ROOT environment variable."
exit 1
fi
exit 1
fi
script_version="1.11"
@ -40,7 +39,7 @@ mount_point="${working_dir}"/mnt
# a problem with mounting the squashfs image due to an incorrectly calculated offset.
# The size of this script
scriptsize=18249
scriptsize=18331
# The size of the utils.tar archive
# utils.tar contains bwrap and squashfuse binaries
@ -351,6 +350,7 @@ run_bwrap () {
--ro-bind-try /etc/group /etc/group \
--ro-bind-try /etc/machine-id /etc/machine-id \
--ro-bind-try /etc/asound.conf /etc/asound.conf \
--ro-bind-try /etc/localtime /etc/localtime \
${dirs} \
${net} \
${nvidia_driver_bind} \