Open paulober opened 1 month ago
Is there an option if a setting for rpi_interfaces
has been set, to tell the power_state_change
module that a reboot is required?
Some additional context:
This PR (and the linked GitHub PRs from other repos) are part of a wider desire to move to using cloud-init as the customisation scheme for Raspberry Pi OS, with associated infrastructure in Raspberry Pi Imager to ensure we maintain feature parity (if not an increased feature set) with the current 'firstrun' style customisation scheme.
Going forward, assuming this PR is merged and our migration proceeds along happily enough, my plan is to recommend to each distro vendor supplying OS images to the Raspberry Pi Imager that they also adopt cloud-init as their customisation scheme. This may result in additional PRs adding distro features to cloud-init in a similar manner to this PR - but should absolutely improve the experience for end users across the board.
There are some merge conflicts now.
There are some merge conflicts now.
Resolved.
This commit adds support for the Raspberry Pi OS debian based distribution. It includes a distro definition, 3 modules and integration into other systems like config generation and docs.
tools/.github-cla-signers
tests/unittests/
cloudinit/example.py
should be tested bytests/unittests/test_example.py
tox -e py3
tox -e doc
.Proposed Commit Message
Additional Context
It currently includes the
cc_rpi_userdata
module for renaming the image user and handling the setup wizard. Maybe adding the user configuration stuff to a custom add_user implementation for the first user added is a better approach here.Also it would be great if the
final_message
would support commands. This would give use the option to remove therc.local
approach and print the IPs through the cloud-init system configuration.@tdewey-rpi, @XECDesign, @ghollingworth, @will-v-pi
Test Steps
Raspberry Pi OS Images with cloud-init can be found here.
Merge type