From 7ec2046e5a9b9e2745e2c083f103e877522b65b5 Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Wed, 7 Jul 2021 22:41:53 +0900 Subject: [PATCH] Add ITERTIME parameter to the rooted_job() ITERTIME parameter is not passed to the chrooted_job Issue #15 --- script/lib/chrooted_job_ubuntu.sh | 2 +- script/lib/chrooted_job_void.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/script/lib/chrooted_job_ubuntu.sh b/script/lib/chrooted_job_ubuntu.sh index ed16912..ce85d61 100644 --- a/script/lib/chrooted_job_ubuntu.sh +++ b/script/lib/chrooted_job_ubuntu.sh @@ -22,7 +22,7 @@ function chrooted_job() { # Add a key to the key file. Use the passphrase in the environment variable. echo "...Adding a key to the key file." - printf %s "${PASSPHRASE}" | cryptsetup luksAddKey -d - "${DEV}${CRYPTPARTITION}" /etc/luks/boot_os.keyfile + printf %s "${PASSPHRASE}" | cryptsetup luksAddKey --iter-time "${ITERTIME}" -d - "${DEV}${CRYPTPARTITION}" /etc/luks/boot_os.keyfile # Add the LUKS volume information to /etc/crypttab to decrypt by kernel. echo "...Adding LUKS volume info to /etc/crypttab." diff --git a/script/lib/chrooted_job_void.sh b/script/lib/chrooted_job_void.sh index ee58369..8482b01 100644 --- a/script/lib/chrooted_job_void.sh +++ b/script/lib/chrooted_job_void.sh @@ -22,7 +22,7 @@ function chrooted_job() { # Add a key to the key file. Use the passphrase in the environment variable. echo "...Adding a key to the key file." - printf %s "${PASSPHRASE}" | cryptsetup luksAddKey -d - "${DEV}${CRYPTPARTITION}" /etc/luks/boot_os.keyfile + printf %s "${PASSPHRASE}" | cryptsetup luksAddKey --iter-time "${ITERTIME}" -d - "${DEV}${CRYPTPARTITION}" /etc/luks/boot_os.keyfile # Add the LUKS volume information to /etc/crypttab to decrypt by kernel. echo "...Adding LUKS volume info to /etc/crypttab."