Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: did it really work like this? #1

Open
fis-cz opened this issue Jul 2, 2020 · 0 comments
Open

Question: did it really work like this? #1

fis-cz opened this issue Jul 2, 2020 · 0 comments

Comments

@fis-cz
Copy link

fis-cz commented Jul 2, 2020

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant