AlaK4X
Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64



Your IP : 18.119.235.107


Current Path : /snap/lxd/29351/wrappers/
Upload File :
Current File : //snap/lxd/29351/wrappers/run-host

#!/bin/sh
CMD="$(basename "${0}")"

unset LD_LIBRARY_PATH
unset PYTHONPATH
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

if [ "$(id -u)" = "0" ]; then
    exec nsenter -t 1 -m "${CMD}" "$@"
fi

exec unshare -U -r chroot "/var/lib/snapd/hostfs/" "${CMD}" "$@"