-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Ahoj Tomasi,
first of all, nice job and thanks for this example. Unfortunately I have found it when I figured everything on my own and I had to laugh when I have read your notes about all of the garbage necessary to get trousers + tpm-tools working in initramfs.
Did it really work like you have it in this repo? Just only with lo iface up? It is crashing to me without DNS server available and "hosts: files dns" configured in nsswitch. Better said, tcsd is crashing with segfault if dns server is not configured at all in resolv.conf or it is not accessible and "hosts: files dns" is configured in nsswitch.
As I am using network time to time inside of the initramfs (but not all the time and it is bit for long to explain how, for what and when I am using it) so I can make a workaround so when i am starting tcsd:
# workaround for bug in tcsd: disable DNS lookups
sed -i -r -E "s/hosts:\s+files dns/hosts: files/g" /etc/nsswitch.conf
tcsd
sed -i -r -E "s/hosts:\s+files dns/hosts: files dns/g" /etc/nsswitch.conf
Just wanted to know your experience...