~raharper/curtin/trunk.fix-bcache-sysfs-write-failures-on-remove

« back to all changes in this revision

Viewing changes to examples/tests/centos_defaults.yaml

Rename centos_network_curthooks -> centos_apply_network_config.

Rename centos_network_curthooks and its upper-cased feature
CENTOS_NETWORK_CURTHOOKS to centos_apply_network_config and
CENTOS_APPLY_NETWORK_CONFIG respectively.

Also drop the handling of 'cloudconfig' entries from that function.
Handling of cloudconfig is up to the curthooks, and that is being
added to maas-images built-in curthooks.

The name centos_apply_network_config is left in curtin.cmd.curthooks.
We add a unittest to ensures that entry point is never lost.

Also add unit test to ensure 'write_files' is available from futil.


Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
hook_commands:
2
2
    builtin: null
3
3
 
4
 
# Force curtin to run centos_network_curthooks for vmtest
5
 
override_centos_curthooks: True
 
4
# Force curtin to run centos_apply_network_config vmtest
 
5
# FIXME: Remove this after maas images no longer need it.
 
6
_ammend_centos_curthooks: True
6
7
 
7
8
write_files:
8
9
  grub_serial_console: