Skip to content

Commit

Permalink
Merge pull request canonical#376 from tomponline/latest-candidate
Browse files Browse the repository at this point in the history
snapcraft/hooks/remove: also unmount /var/snap/lxd/shmounts (latest-candidate)
  • Loading branch information
tomponline authored Mar 15, 2024
2 parents 0cbd19b + 51732a2 commit 80960cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snapcraft/hooks/remove
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ -d /sys/kernel/security/apparmor ]; then
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
for path in "${SNAP_COMMON}/ns/shmounts" "${SNAP_COMMON}/ns/mntns" "${SNAP_COMMON}/ns" "${SNAP_COMMON}/var/lib/lxcfs/" "${SNAP_COMMON}/shmounts"; do
nsenter -t 1 -m umount -l "${path}" >/dev/null 2>&1 || true
done

Expand Down

0 comments on commit 80960cf

Please sign in to comment.