Здравей,
Кратък отговор - да.
Ето част от "/etc/init.d/halt.sh:
...BEGIN...
# Unmounting should use /proc/mounts and work with/without devfsd running
# Credits for next function to unmount loop devices, goes to:
#
# Miquel van Smoorenburg, <
miquels@drinkel.nl.mugnet.org>
# Modified for RHS Linux by Damien Neil
#
#
# Unmount file systems, killing processes if we have to.
# Unmount loopback stuff first
# Use `umount -d` to detach the loopback device
# Remove loopback devices started by dm-crypt
remaining=$(awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts | \
sort -r | grep -v '/newroot' | grep -v '/mnt/livecd'
![Wink '<img](http://www.linux-bg.org/iB_html/non-cgi/emoticons/wink.gif)
'>
[[ -n ${remaining} ]] && {
sig=
retry=3
while [[ -n ${remaining} && ${retry} -gt 0 ]]; do
if [[ ${retry} -lt 3 ]]; then
ebegin "Unmounting loopback filesystems (retry)"
umount -d ${remaining} &>/dev/null
eend $? "Failed to unmount filesystems this retry"
else
ebegin "Unmounting loopback filesystems"
umount -d ${remaining} &>/dev/null
eend $? "Failed to unmount filesystems"
fi
remaining=$(awk '!/^#/ && $1 ~ /^\/dev\/loop/ && $2 != "/" {print $2}' /proc/mounts | \
sort -r | grep -v '/newroot' | grep -v '/mnt/livecd'
![Wink '<img](http://www.linux-bg.org/iB_html/non-cgi/emoticons/wink.gif)
'>
[[ -z ${remaining} ]] && break
/bin/fuser -k -m ${sig} ${remaining} &>/dev/null
sleep 5
retry=$((${retry} - 1))
sig=-9
done
}
...END...
Румен