endif
if install_root_keys
- etc_files += 'root.keys'
+ root_keys_path = keyfile_default.split('/')
+ root_keys_filename = root_keys_path[-1]
+ root_keys_dir = []
+ foreach el : root_keys_path
+ if el != root_keys_filename
+ root_keys_dir += el
+ endif
+ endforeach
+ install_data(
+ sources: 'root.keys',
+ rename: root_keys_filename,
+ install_dir: '/'.join(root_keys_dir)
+ )
endif
install_root_keys = true
managed_ta = managed_ta or get_option('managed_ta') == 'auto'
else
- install_root_keys = false
- if managed_ta
- warning('Using managed_ta along with non-standard keyfile_default. ' +
- 'Ensure keyfile_default directory will be writable by kresd.')
- endif
+ install_root_keys = managed_ta
endif
## Root hints