Skip to content

Commit d013149

Browse files
committed
encrypt: recoverykey is now always slot #2
1 parent fdcc445 commit d013149

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/lib/tik/modules/post/15-encrypt

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ add_recoveryKey() {
173173
echo "# Adding recovery key to ${cryptpart}" > ${encrypt_pipe}
174174
log "[add_recoveryKey] adding recovery key to ${cryptpart}"
175175
prun /usr/sbin/cryptsetup luksAddKey --key-file=${tik_keyfile} --batch-mode --force-password "${cryptpart}" <<<"${key}"
176-
echo '{"type":"systemd-recovery","keyslots":["1"]}' | prun /usr/sbin/cryptsetup token import "${cryptpart}"
176+
echo '{"type":"systemd-recovery","keyslots":["2"]}' | prun /usr/sbin/cryptsetup token import "${cryptpart}"
177177
echo "100" > ${encrypt_pipe}
178178
}
179179

0 commit comments

Comments
 (0)