Skip to content

Commit

Permalink
add support for resume from encrypted swap partition
Browse files Browse the repository at this point in the history
  • Loading branch information
Heavenser committed Jun 12, 2018
1 parent be4ea03 commit 07f3d37
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions files/init
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ ParseKernelParameters()
enc_tries=*)
_enc_tries=$(ParseOption "${param}")
;;
resume=*)
_resume=$(RetrieveDriveValue "${param}")
;;
init=*)
_init=$(ParseOption "${param}")
;;
Expand Down Expand Up @@ -610,6 +613,16 @@ DecryptDrives()
done

unset tempTargets

CheckDecryptedSwap
}

# Check swap device to resume after hibernate
CheckDecryptedSwap()
{
Info "Checking Swap device..."

resume ${_resume}
}

# If "use_raid" is enabled, raid specific code will be ran
Expand Down

0 comments on commit 07f3d37

Please sign in to comment.