File tree 1 file changed +21
-3
lines changed
1 file changed +21
-3
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
4
- function prereqs()
4
+ function install_tss2()
5
+ {
6
+ # apt install libtss2 libtss2-fapi1 libtss2-rc0 libtss2-tctildr0
7
+ # are all of these needed? perhaps even the 'libtss2-dev' as used before.
8
+ apt install libtss2 libtss2-fapi1 libtss2-rc0 libtss2-tctildr0
9
+ }
10
+
11
+ function mkcrypttab()
12
+ {
13
+ if [[ -f /etc/crypttab ]] ; then
14
+ echo " WARNING: using existing crypttab" 1>&2
15
+ else
16
+ echo " WARNING: creating default crypttab" 1>&2
17
+ ./mkcrypttab.sh >> /etc/crypttab
18
+ fi
19
+ }
20
+
21
+ function prereqs_old()
5
22
{
6
23
# sudo apt install libtss2-dev
7
24
# libtss2-dev libtss2-fapi1 libtss2-rc0 libtss2-tctildr0
@@ -61,7 +78,7 @@ function update_initramfs()
61
78
function tldr_just_work_old()
62
79
{
63
80
# This compiles System D with TPM2 support. Apparently not needed for a new install anymore, but left 'just in case'.
64
- prereqs && \
81
+ prereqs_old && \
65
82
install_docker && \
66
83
compile_systemd_with_tpm2 && \
67
84
install_systemd_with_tpm2 && \
@@ -72,7 +89,8 @@ function tldr_just_work_old()
72
89
73
90
function tldr_just_work()
74
91
{
75
- prereqs && \
92
+ mkcrypttab && \
93
+ install_tss2 && \
76
94
install_crypt_setup_mod_scripts && \
77
95
update_initramfs && \
78
96
echo SystemD with TPM2 installation complete.
You can’t perform that action at this time.
0 commit comments