/usr/share/ltsp/plugins/ltsp-build-client/common/091-unmount-dirs is in ltsp-server 5.5.7-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | # At the finalization MODE, all plugins after 091- should assume that
# the CHROOT_MOUNTED dirs (e.g. $ROOT/proc) are no longer mounted.
case "$MODE" in
finalization)
# binfmt_misc might need to be unmounted manually, see LP #534211
if [ -e $ROOT/proc/mounts ] && grep -q "^binfmt_misc $ROOT/proc/sys/fs/binfmt_misc" $ROOT/proc/mounts; then
umount $ROOT/proc/sys/fs/binfmt_misc || true
fi
failed_dirs=""
for dir in $CHROOT_MOUNTED; do
if ! umount $dir; then
failed_dirs="$failed_dirs $dir"
fi
done
# Those will be taken care of in ltsp-build-client's on_exit()
CHROOT_MOUNTED="$failed_dirs"
;;
esac
|