wait for device to be connected

This commit is contained in:
2019-09-19 22:53:17 +02:00
parent 2235fddb9a
commit 46bcc2f52a
3 changed files with 14 additions and 1 deletions

View File

@@ -24,7 +24,10 @@ install () {
inst "$moddir/luks-2fa.target" "/etc/systemd/system/luks-2fa.target"
mkdir -p "$initdir/etc/systemd/system/luks-2fa.target.wants"
inst "$moddir/fido2-connected.service" "/etc/systemd/system/fido2-connected.service"
mkdir -p "$initdir/etc/systemd/system/sysinit.target.wants"
ln -sf "/etc/systemd/system/luks-2fa.target" "$initdir/etc/systemd/system/sysinit.target.wants/"
ln -sf "/etc/systemd/system/fido2-connected.service" "$initdir/etc/systemd/system/sysinit.target.wants/"
}