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