[Pkg-sysvinit-devel] Bug#345272: sysv-rc /etc/init.d/umount
displays errors if there is nothing to umount
Mark Hatle
mhatle at mvista.com
Fri Dec 30 00:29:22 UTC 2005
Package: initscripts
Version: 2.86.ds.1-8
In umountfs does not find anything to unmount, it still attempts to call
umount -f -r -d "$DIRS", which results in an error showing the usage of
"umount".
The following fixes it on my system:
@@ -51,7 +51,11 @@ do_stop () {
esac
DIRS="$DIRS $DIR"
done
- umount -f -r -d $DIRS
+ if [ -n "$DIRS" ] ; then
+ umount -f -r -d $DIRS
+ else
+ true
+ fi
)
log_action_end_msg $?
}
More information about the Pkg-sysvinit-devel
mailing list