From a2eb7ca23c6fee6e7c4c3b036a648277e7434a39 Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sat, 15 Nov 2014 21:43:11 +0300 Subject: [PATCH] stage-1: fix hibernation for device node symlinks closes #4995 --- nixos/modules/system/boot/stage-1-init.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/stage-1-init.sh b/nixos/modules/system/boot/stage-1-init.sh index 071eb8ee874c..b62aed4ead95 100644 --- a/nixos/modules/system/boot/stage-1-init.sh +++ b/nixos/modules/system/boot/stage-1-init.sh @@ -187,7 +187,7 @@ if test -e /sys/power/resume -a -e /sys/power/disk; then done fi if test -n "$resumeDev"; then - echo "$resumeDev" > /sys/power/resume 2> /dev/null || echo "failed to resume..." + readlink -f "$resumeDev" > /sys/power/resume 2> /dev/null || echo "failed to resume..." fi fi