If I boot with resume=, TC ignores some of my other kernel args (specifically tce= ). So I was reading tc-config.
tc-config exits if resume= doesn't come up with a valid $SWAP_SIZE. I think this is why my tce= arg gets ignored. I think it should read continue, instead ... that breaks the resume= handling without exiting.
--- tc-config.orig Thu Jan 22 04:28:24 2009
+++ tc-config.fix Thu Jan 22 04:27:38 2009
@@ -389,7 +389,7 @@
RESUME=`basename $RESUME`
SWAP_SIZE=$(cat /proc/swaps | grep "$RESUME" | awk '{print $3}')
[ -z "$SWAP_SIZE" ] && /sbin/swapon /dev/"$RESUME" && SWAP_SIZE=$(cat /proc/swaps | grep "$RESUME" | awk '{print $3}')
- [ -z "$SWAP_SIZE" ] && exit 1
+ [ -z "$SWAP_SIZE" ] && continue
MEM_SIZE=$(cat /proc/meminfo | awk '/MemTotal/{print $2}')
if [ $SWAP_SIZE -gt $MEM_SIZE ]; then
grep -q disk /sys/power/state && echo "disk" > /etc/sysconfig/tc.resume