Skip to content

Commit

Permalink
Merge pull request #10 from jean-edouard/oxt-389
Browse files Browse the repository at this point in the history
OXT-389: implement recommended changes
  • Loading branch information
rossphilipson committed Nov 5, 2015
2 parents 103d7d3 + c0946d9 commit ec585b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions part2/stages/Functions/install-main
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,12 @@ install_dom0()
# Dealing with encrypted partitions
# config
# Generate random config key.
openssl rand -out ${CONFIG_KEY} 128 2>/dev/null
openssl rand -out ${CONFIG_KEY} 512 2>/dev/null
# Initialize config's luks header with previous key.
cryptsetup -q -S 7 -i 1 luksFormat /dev/xenclient/config ${CONFIG_KEY} >&2 || return 1
cryptsetup -q -S 7 -i 1 --cipher=aes-xts-plain64 luksFormat /dev/xenclient/config ${CONFIG_KEY} >&2 || return 1
# Adds get-config-key result to keys in config's luks header.
local GCK=`mktemp -t`
get-config-key > ${GCK}
# FIXME: iteration time will have to be different between kent and non-kent
cryptsetup -q -i 100 -d ${CONFIG_KEY} luksAddKey /dev/xenclient/config ${GCK} || {
rm -f ${GCK}
set +x
Expand Down

0 comments on commit ec585b1

Please sign in to comment.