%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/lxd/current/snap/hooks/
Upload File :
Create Path :
Current File : //snap/lxd/current/snap/hooks/remove

#!/bin/sh
set -eu

# Re-exec outside of apparmor confinement
if [ -d /sys/kernel/security/apparmor ] && [ "$(cat /proc/self/attr/current)" != "unconfined" ]; then
    exec aa-exec -p unconfined -- "$0" "$@"
fi

# Unmount potential LXD paths.
for path in "${SNAP_COMMON}/ns/shmounts" "${SNAP_COMMON}/ns/mntns" "${SNAP_COMMON}/ns" "${SNAP_COMMON}/var/lib/lxcfs/"; do
    nsenter -t 1 -m umount -l "${path}" >/dev/null 2>&1 || true
done

# Stop workaround unit
nsenter -t 1 -m systemctl stop snap.lxd.workaround >/dev/null 2>&1 || true

exit 0

Zerion Mini Shell 1.0