From 0b8dd2579e2446dc04d6818297fa7b1600b54b30 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 26 Feb 2016 21:59:34 +0100 Subject: let systemd-ask-password add the key to store and drop keyctl Signed-off-by: Christian Hesse --- systemd/ykfde-2f | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'systemd') diff --git a/systemd/ykfde-2f b/systemd/ykfde-2f index 3aac298..0884a61 100644 --- a/systemd/ykfde-2f +++ b/systemd/ykfde-2f @@ -5,9 +5,7 @@ # This software may be used and distributed according to the terms # of the GNU General Public License, incorporated herein by reference. -YKFDEFACTOR="$(systemd-ask-password --no-tty 'Please enter second factor for Yubikey full disk encryption!')" -YKFDESERIAL="$(keyctl 'add' 'user' 'ykfde-2f' "${YKFDEFACTOR}" '@u')" -keyctl 'timeout' "${YKFDESERIAL}" '150' +systemd-ask-password --no-tty --keyname='ykfde-2f' 'Please enter second factor for Yubikey full disk encryption!' if [ -s '/run/ykfde.pid' ]; then kill -USR1 $(cat '/run/ykfde.pid') -- cgit v1.2.3-54-g00ecf