176 Commits

Author SHA1 Message Date
наб
fd16dbbcd3
Force signed char since we have =-1 (fixes FTBFS on char=uchar) 2025-03-09 18:56:42 +01:00
наб
82b5118fcb
dracut: replace removed-from-dracut-ng inst_library with inst_libdir_file in TPM1
Equivalent calling convention, produces identical initrd

Fixes: https://todo.sr.ht/~nabijaczleweli/tzpfms/3
v0.4.1
2025-03-09 04:15:15 +01:00
наб
2335a22bc7
dracut: use standard require_binaries error message in check() 2025-03-09 03:51:48 +01:00
наб
588cce3882
dracut: install TPM2 TCTIs with inst_libdir_file instead of removed-from-dracut-ng inst_library
We can't pull in 91tpm2-tss if installing TPM2 backend
instead of installing the TCTIs manually because it's
  require_binaries tpm2

Initrds produced are identical.

References: https://todo.sr.ht/~nabijaczleweli/tzpfms/3
2025-03-09 03:46:46 +01:00
наб
2764c6e0d3
format 2025-02-16 16:55:39 +01:00
наб
44f9b25314
srhtcdn.githack.com -> ra.ws.co.ls
Fixes: https://todo.sr.ht/~nabijaczleweli/tzpfms/2
2025-02-13 00:00:44 +01:00
наб
d6a2d4683d
mlockall() before calling the TPM 2024-05-31 17:58:42 +02:00
наб
dcf545a6f6
Don't destroy fzifdso manuals on CI 2024-03-29 13:31:38 +01:00
наб
48bebe9be3
tzpfms backend TPM[12] -> tzpfms TPM[12] backend v0.4.0 2024-03-11 18:24:55 +01:00
наб
81add25df9
tools -> programs for programs 2024-03-11 13:10:20 +01:00
наб
56ada0e31c
Deduplicate <unistd.h> 2024-03-10 03:33:09 +01:00
наб
f3bb25ee57
getrandom() -> getentropy() 2024-03-10 03:32:17 +01:00
наб
887f9b6386
Now with_stdin_at() doesn't need the scope wrapper 2024-03-10 03:28:51 +01:00
наб
1d39364a02
Clang complains about ZFS headers 2024-03-05 22:48:30 +01:00
наб
7e4ea2c2da
clang-format 2024-03-05 19:25:25 +01:00
наб
3d082a3efd
No need to free lines before exit 2024-03-05 19:21:00 +01:00
наб
fc57e89e37
argv[0] in error prefix 2024-03-05 19:20:38 +01:00
наб
a77e6c1d80
reallocarray when reallocarraying 2024-03-05 19:19:40 +01:00
наб
52a4871ce0
Clean up zfs-tpm1x-clear-key (parse_key_props() is already in main_clear.hpp) 2024-03-04 12:33:41 +01:00
наб
984c5d5354
tzpfms [version] TZPFMS_VERSION 2024-03-03 20:43:44 +01:00
наб
7c0393e894
Clean up with_stdin_at error handling 2024-03-03 18:59:57 +01:00
наб
2118cc3679
Flatten shellcheck invocation 2024-03-03 16:57:46 +01:00
наб
83664adbc8
Decargocultise i-t prereqs 2024-03-03 14:30:04 +01:00
наб
a20c275ceb
use :? to early-exit instead of :- and hope for a good error 2024-03-03 14:08:37 +01:00
наб
1f9fe814fe
Use map for nsswitch.conf uniquification. Don't try to find [NOTFOUND or whatever stanzas as libraries 2024-03-03 14:05:42 +01:00
наб
5df51d163e
^(group|hosts) 2024-03-03 10:43:38 +01:00
наб
e271fc1ea2
Finally put the WRAPPING_KEY_LEN inlining into zfs.hpp 2024-03-02 22:14:44 +01:00
наб
31f4ef215c
Document /usr/share/tzpfms/. Ported to zfs 2.2 2024-03-02 21:14:30 +01:00
наб
f5996ad11a
:v 2024-03-01 13:12:22 +01:00
наб
f81d510053
Align dracut (and i-t but no changes there) with modern ZFS 2024-03-01 12:08:32 +01:00
наб
2fc0bffe7d
crosslink to fzifdso 2024-02-29 02:55:01 +01:00
наб
a4294c83c5
] ; 2024-02-29 02:05:58 +01:00
наб
6a143b6e8b
am i dying 2024-02-29 01:42:14 +01:00
наб
b31a131eb3
It's /usr/share/tpfms obv 2024-02-29 01:30:32 +01:00
наб
d3d43f281b
needless awk 2024-02-29 01:30:32 +01:00
наб
f0dfcc2110
Support modern nonroot necessities in dracut. quiet is actually used in mount.h
Fixes: fcd89b3a93c7f94ffdefa6e6cfb19eecb517c20b
2024-02-29 01:30:32 +01:00
наб
a0246cb48e
Compat with zfs 2.2+'s nvlist_lookup_string() taking const char ** 2024-02-28 19:30:59 +01:00
наб
fcd89b3a93
Useless quiet=y 2024-02-28 18:57:00 +01:00
наб
ba81298aaa
Read /usr/lib/tzpfms/$backend from /libexec/tzpfms-zfs-load-key@ to support fzifdso-style plugins 2024-02-28 18:34:59 +01:00
наб
69a1bcc2ce
Printing -> writing when used for writing 2024-02-28 18:14:19 +01:00
наб
bf78dcbc80
ar --thin for internal library 2023-12-20 16:39:06 +01:00
наб
f322a48302
PKG_CONFIG is the canonical spelling acc'g to http://crossqa.debian.net/build/urlview_1b-1_arm64_20231205033603.log 2023-12-12 16:37:50 +01:00
наб
cfd02ff6f3
Needless constexpr broke build but only on current sid GCC? v0.3.4 2023-12-06 03:22:03 +01:00
наб
8997b47acf
Common objects need to be in an archive to get correctly -flto/--as-neededed
Partial revert of e78ba80bc90fdb78f4ce47d12519280fe2e5981c
2023-12-06 03:10:34 +01:00
наб
a85bcbeca2
Remove licence badge from README (the git.sr.ht webview generates this in top-right now, so no need to update it to licences-MIT,%200BSD or whatever) 2023-11-29 20:11:18 +01:00
наб
d0cd0c93f9
Right "extension" 2023-11-27 01:03:28 +01:00
наб
7329bfb5f6
Also build contrib on CI 2023-11-26 01:55:49 +01:00
наб
12d4b36c69
When autogenerating TZPFMS_DATE, do it per file 2023-11-26 01:47:57 +01:00
наб
f4b3cd202a
out/locale for sensibler install. upload like from ratrun 2023-11-26 01:34:06 +01:00
наб
b3764d8626
No point to libzfs_fini() as the last thing in main, either 2023-11-25 23:31:13 +01:00