Commit d1b64b99 authored by Alan Diwix's avatar Alan Diwix Committed by Natanael Copa
Browse files

Find resume device by UUID or LABEL

parent a4d6120a
......@@ -515,7 +515,11 @@ if [ -n "$KOPT_root" ]; then
if [ -n "$KOPT_resume" ]; then
echo "Resume from disk"
if [ -e /sys/power/resume ]; then
printf "%d:%d" $(stat -Lc "0x%t 0x%T" "$KOPT_resume") >/sys/power/resume
case "$KOPT_resume" in
UUID*|LABEL*) resume_dev=$(findfs "$KOPT_resume");;
*) resume_dev="$KOPT_resume";;
esac
printf "%d:%d" $(stat -Lc "0x%t 0x%T" "$resume_dev") >/sys/power/resume
else
echo "resume: no hibernation support found"
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment