On 12/05/2010 01:41 AM, Rakhesh Sasidharan wrote: > Would it be possible for you to send me a copy of your > ''/usr/lib/pm-utils/sleep.d/01grub'' file please. I modified mine as > part of trying to fix the problem and now I am not sure if the problem > was there by default or caused by something I changed. :p I don't have one. B^) It is a part of the pm-utils RPM. You can always re-install that RPM to get it back. But here is my /usr/lib64/pm-utils/sleep.d/01.grub: > #!/bin/sh > # Ensure grub will load the correct kernel on resume from hibernate, > # TODO: This is rather redhat specific, and very grub specific. > > default_resume_kernel() > { > [ "$1" = "suspend" ] && return $NA > case $(uname -m) in > i?86|x86_64|athlon) > ;; > *) # this is only valid for x86 and x86_64 > return $NA > ;; > esac > > [ -x /sbin/grubby -a -x /sbin/grub ] || return $NA > [ -e "/boot/vmlinuz-$(uname -r)" ] || return 1 > out=$(/sbin/grubby --info /boot/vmlinuz-$(uname -r) |grep index) > [ -n "${out}" ] || return 1 > current=${out#index=} > echo "savedefault --default=${current} --once" | \ > /sbin/grub --device-map=/boot/grub/device.map \ > --batch --no-floppy --no-curses >/dev/null > > return 0 > } > > case "$1" in > hibernate|suspend) > default_resume_kernel $2 > ;; > *) exit $NA > ;; > esac I hope it helps. > I have a separate /boot partition. So /etc/grub.conf has entries > relative to this partition. However, the 01grub file above passes the > entries as /boot/xxxx to /sbin/grubby so it can set things up before > hibernating. And /sbin/grubby obviously can't find those entries > in /etc/grub.conf (because it searches for /boot/xxxx) and hence fails. Can't say I've ever had a separate /boot partition on my laptop, and those paths are in my copy, and it works for me. Is it just a question of ensuring that your /boot partition is already mounted in your filesystem when those scripts get run, right? > Regards. -- Kevin J. Cummings kjchome@xxxxxxx cummings@xxxxxxxxxxxxxxxxxx cummings@xxxxxxxxxxxxxxxxxxxxxxx Registered Linux User #1232 (http://counter.li.org) -- users mailing list users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe or change subscription options: https://admin.fedoraproject.org/mailman/listinfo/users Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines