https://bugzilla.novell.com/show_bug.cgi?id=568132
https://bugzilla.novell.com/show_bug.cgi?id=568132#c6
Carlos Robinson changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|UPSTREAM |
--- Comment #6 from Carlos Robinson 2010-11-11 23:50:40 UTC ---
I have written a script that aborts the hibernation process when there is an
NFS mount. This can avoid the kernel crash - my 11.2 installation has crashed
several times because of this.
I propose that you consider adding this script to all suse versions, till you
can verify that hibernating with an NFS mount active doesn't crash the kernel,
ie, till the real problem is solved upstream.
You can of course modify it as you see fit :-)
/etc/pm/sleep.d/5nfscheck
#!/bin/bash
/usr/lib/pm-utils/functions
RETVAL=0
case "$1" in
hibernate|suspend)
MONTADO=`mount | grep "type nfs" | grep -v "/proc/fs/nfsd"`
#MONTADO="Probando si aborta."
if test -n "$MONTADO" ; then
RETVAL=1
#This does not abort.
touch $INHIBIT
#This does.
MESSAGE="Aborting hibernation process because there is an NFS mount
active. "
/bin/logger -t pm-utils -p syslog.warn $MESSAGE
echo -e "$MESSAGE\r" > /dev/tty0
echo -e "--> $MONTADO\r" > /dev/tty0
echo "$MESSAGE Touched $INHIBIT"
fi
;;
thaw|resume)
;;
*)
;;
esac
exit $RETVAL
# Idea for $INHIBIT in /usr/lib/pm-utils/sleep.d/30s2disk-check
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.