TA boostrap works with non-existent file, but not with empty file
Bootstraping of trust anchor isn't working on turris omnia. knot-resolver version: 4a49a83f Omnia custom patch: https://gitlab.labs.nic.cz/turris/turris-os-packages/blob/test/net/knot-resolver/patches/remove-optional-dependencies.patch
-----omnia test---
root@turris:/tmp# touch root.key
root@turris:/tmp# chmod 0777 root.key
root@turris:/tmp# ls -la root.key
-rwxrwxrwx 1 root root 0 Aug 9 11:23 root.key
root@turris:/tmp# kresd -k /tmp/root.key
[system] interactive mode
> trust_anchors
[hold_down_time] => 2592000000
[keep_removed] => 0
[file_current] => /tmp/root.key
[config] => function: 0xb6a71268
[insecure] => {
}
[keyset] => {
}
[add] => function: 0xb6a71838
[update] => function: 0xb6a711d0
[set_insecure] => function: 0xb6a712d0
root@turris:/tmp# ls -la root.key
-rwxrwxrwx 1 root root 0 Aug 9 11:23 root.ke
>Croot@turris:/tmp# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=60 time=0.758 ms