forked from the2nd/ykluks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
module-setup.sh
executable file
·66 lines (58 loc) · 1.78 KB
/
module-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
check() {
return 0
}
depends() {
echo rootfs-block
return 0
}
install() {
#inst_hook pre-trigger 91 "$moddir/ykluks.sh"
inst_hook initqueue 01 "$moddir/ykluks.sh"
#inst_hook pre-mount 1 "$moddir/fix_crypttab.sh"
#inst_hook pre-trigger 10 "$moddir/ykluks.sh"
#inst_hook cmdline 5 "$moddir/ykluks.sh"
#inst_simple "/bin/bash" "/bin/bash"
inst tr
inst cut
inst true
inst find
inst blkid
inst lsusb
inst cryptsetup
inst ykchalresp
# Stolen from qubes-pciback module.
inst lspci
inst grep
inst awk
#inst_simple "/usr/bin/tr" "/bin/tr"
#inst_simple "/usr/bin/cut" "/bin/cut"
#inst_simple "/usr/bin/true" "/bin/true"
#inst_simple "/usr/sbin/blkid" "/bin/blkid"
#inst_simple "/usr/bin/ykchalresp" "/bin/ykchalresp"
inst_simple "/etc/ykluks.conf" "/etc/ykluks.conf"
#inst_rules "$moddir/20-ykfde.rules"
inst_rules "/usr/lib/udev/rules.d/69-yubikey.rules"
#inst_simple "$moddir/ykluks.sh" "/bin/ykluks.sh"
#inst_hook cmdline 30 "$moddir/parse-mod.sh"
#inst_simple "$moddir/ykfde.sh" /sbin/ykfde.sh
#inst_simple /usr/lib/udev/ykfde
#inst_simple /etc/ykfde.conf
#inst_dir /etc/ykfde.d/*
inst_multiple -o \
$systemdsystemunitdir/systemd-ask-password-console.path \
$systemdsystemunitdir/systemd-ask-password-console.service \
systemd-ask-password systemd-tty-ask-password-agent
dracut_need_initqueue
}
installkernel() {
# Stolen from qubes-pciback module.
local mod=
for mod in pciback xen-pciback; do
if modinfo -k "${kernel}" "${mod}" >/dev/null 2>&1; then
hostonly='' instmods "${mod}"
fi
done
}