#! /bin/sh
#
# umountfs	Unmount all local filesystems.
#

PATH=/sbin:/bin:/usr/sbin:/usr/bin

[ -f /etc/default/mount_checks ] && source /etc/default/mount_checks

# Write out a marker so we can tell we unmounted cleanly
[ -n "$MOUNT_STAMP" ] && date > $MOUNT_STAMP

# We leave /proc mounted.
echo "Unmounting local filesystems..." | logger -s
mount -o remount,ro /mnt/ram

# This had a -f option, but it caused a SEGV in the umount2 system
# call to unmount /dev after installing tiopenmax (NOV-24851). 
umount -a -r

mount -o remount,ro /

: exit 0
