Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 12 additions & 10 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,18 @@ install_subdir(
)

# Binaries and script entrypoints
bash_completions_dir = dependency('bash-completion').get_variable(
pkgconfig: 'completionsdir',
default_value: get_option('datadir') / 'bash-completion' / 'completions',
)
install_data(
'bash_completion/cloud-init',
install_dir: bash_completions_dir,
install_mode: 'rw-r--r--',
install_tag: 'bin',
)
if get_option('bash_completion')
bash_completions_dir = dependency('bash-completion').get_variable(
pkgconfig: 'completionsdir',
default_value: get_option('datadir') / 'bash-completion' / 'completions',
)
install_data(
'bash_completion/cloud-init',
install_dir: bash_completions_dir,
install_mode: 'rw-r--r--',
install_tag: 'bin',
)
endif

install_data(
[
Expand Down
1 change: 1 addition & 0 deletions meson_options.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
option('init_system', type: 'string', value: 'systemd', description: 'Set target init system.')
option('distro_templates', type: 'array', value: [], description: 'Distro template files to install. WARNING: Templates may change in the future. If using this option, be sure to check new releases for template file changes.')
option('disable_sshd_keygen', type: 'boolean', value: false, description: 'Provide systemd service to disable sshd-keygen if present to avoid races with cloud-init.')
option('bash_completion', type: 'boolean', value: true, description: 'Bash completion for cloud-init.')