hibernate-script; in /etc/init.d/hibernate-cleanup the function get_swap_id() { local line fdisk -l | while read line; do case "$line" in /*Linux\ [sS]wap*) echo "${line%% *}" esac done } When fdisk is called to list partitions containing raid volumes then returns an error. Eg: Disk /dev/md0 doesn't contain a valid partition table. On my system is a minor cosmetic issue, but could potentially cause issues. The fix is to rediredt sterr to stout and let the error be filtered out... get_swap_id() { local line - fdisk -l | while read line; do + fdisk -l 2>&1 | while read line; do case "$line" in /*Linux\ [sS]wap*) echo "${line%% *}" esac done }
I have asked upstream to include this in their next version, which should be out soonish.