[Bug 2069827] Re: [SRU] Place cloud-init seed on boot partition for desktop images
Ćukasz Zemczak
2069827 at bugs.launchpad.net
Wed Aug 14 15:14:30 UTC 2024
Hello Dave, or anyone else affected,
Accepted ubuntu-raspi-settings into noble-proposed. The package will
build now and be available at
https://launchpad.net/ubuntu/+source/ubuntu-raspi-settings/24.04.4 in a
few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
noble to verification-done-noble. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-noble. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: ubuntu-raspi-settings (Ubuntu Noble)
Status: Confirmed => Fix Committed
** Tags added: verification-needed verification-needed-noble
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-raspi-settings in
Ubuntu.
https://bugs.launchpad.net/bugs/2069827
Title:
[SRU] Place cloud-init seed on boot partition for desktop images
Status in ubuntu-raspi-settings package in Ubuntu:
Fix Released
Status in ubuntu-raspi-settings source package in Noble:
Fix Committed
Bug description:
[ Impact ]
The noble .1 release is switching the initial desktop setup wizard
from oem-config (source ubiquity) to gnome-initial-setup. The latter
requires that no user accounts exist on first boot. However, cloud-
init (included since noble) is creating a default "ubuntu" user on
these images. The gadget has been updated to include configuration for
cloud-init that will prevent user creation (as on oracular), but this
configuration will not be read without cloud-init knowing to look on
the boot partition for its seed.
On server images, 99-fake-cloud.cfg is included (via ubuntu-raspi-
settings-server) to point cloud-init at this location. This
configuration file needs to move to ubuntu-raspi-settings (applicable
to both server and desktop images) as it already has on oracular.
[ Test Plan ]
For initial boot of desktop images:
* Current noble daily desktop images for Raspberry Pi fail to boot to gnome-initial-setup
* Checking /etc/passwd on the image post-first-boot reveals presence of "ubuntu" user
* Once new dailies with this change are generated, attempt to boot them
* Observe that gnome-initial-setup starts successfully
For upgrades of existing systems:
* Boot ubuntu server for raspi (noble)
* Upgrade to proposed ubuntu-raspi-settings package(s)
* Observe /etc/cloud/cloud.cfg.d/99-fake-cloud.cfg is unchanged
* Check ownership has moved to ubuntu-raspi-settings
* Check reboot operates
* Boot ubuntu desktop for raspi (noble)
* Observe /etc/cloud/cloud.cfg.d/99-fake-cloud.cfg does not exist
* Upgrade to proposed ubuntu-raspi-settings package(s)
* Observe /etc/cloud/cloud.cfg.d/99-fake-cloud.cfg has appeared
* Check reboot operates
[ Where Things Can Go Wrong ]
For server users, there should ultimately be no change to their
system. The change should merely move the "ownership" of
/etc/cloud/cloud.cfg.d/99-fake-cloud.cfg from ubuntu-raspi-settings-
server to ubuntu-raspi-settings. Nonetheless, configuration file
movements are subtle things that need careful handling and this change
should be tested on existing installs too (hence the inclusion in the
test plan above).
For desktop users, this change should cause
/etc/cloud/cloud.cfg.d/99-fake-cloud.cfg to appear. Again, this
*shouldn't* affect the system as the only configuration present
matters on first boot only. Still, the change should be tested on
existing installs (hence the test plan above).
[ Original Description ]
The Ubuntu Desktop for Raspberry Pi images include cloud-init since
noble. The cloud-init seed is redirected to the (FAT formatted) boot
partition on the Ubuntu Server for Raspberry Pi images, and for
consistency and ease of use, this should be replicated for the desktop
images too.
We could add 99-fake-cloud.cfg to ubuntu-raspi-settings-desktop as
well as ubuntu-raspi-settings-server (where it currently resides)
which would allow us to remove it again in future, if that becomes
necessary. However, that would necessarily create a conflict between
both packages and it's conceivable that some may wish to install both
(for desktop-on-server type installs). Therefore it is probably best
to simply move 99-fake-cloud.cfg over to the common ubuntu-raspi-
settings package, and add Breaks/Replaces to ensure the configuration
is moved appropriately by dpkg.
Note to self: the gadget will need updating to include the cloud-init
seed on the boot partition of the desktop images. However, the seed
must be *different* (don't auto-create users), and must not include
network-config (as the desktop settings include a network-manager
override).
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-raspi-settings/+bug/2069827/+subscriptions
More information about the foundations-bugs
mailing list