cloud-init fails for minimal images (can't find locale-gen)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-images |
New
|
Undecided
|
Unassigned | ||
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Michael Hudson-Doyle | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
* Locale is not set for cloud images and minimal images lack the locale-gen executable. This causes cloud-init to fail, however there is no need to call locale-gen if we set the locale.
* Update minimal ubuntu-cpc images to set the locale to C.UTF-8 at build time.
[Test Case]
* Launch the minimal cloud image and observe locale failure in cloud init log (/var/log/
* Launch the minimal cloud image built with the proposed change and observer that user does not get a warning about locales on the terminal and cloud init log (/var/log/
[Regression Potential]
* There is no regression as this change is scoped to ubuntu-cpc minimal images only, which have not been announced.
=================
Original description:
Opening initially as a cloud-images bug to ensure that the lack of 'locale-gen' is desired. If so, then this should go to cloud-init to dtrt for minimal images.
Related branches
- Steve Langasek: Approve
-
Diff: 35 lines (+17/-0)2 files modifieddebian/changelog (+7/-0)
live-build/auto/build (+10/-0)
Changed in livecd-rootfs (Ubuntu): | |
assignee: | nobody → Michael Hudson-Doyle (mwhudson) |
status: | New → In Progress |
tags: | added: id-5ab93fb4f5bc0159b6998d14 |
description: | updated |
tags: | added: id-5aea189ff2e03c354277099e |
tags: | added: id-5b21b1006874c4e4159dea3f |
I launched a xenial minimal cloud-image (20180321) via LXD:
$ lxc remote add minimal- ubuntu- daily https:/ /cloud- images. ubuntu. com/minimal/ daily --protocol simplestreams
$ lxc image list minimal- ubuntu- daily -+----- ------- --+---- ----+-- ------- ------- ------- ------- ------- ------- -+----- ---+--- ------+ ------- ------- ------- ------- ---+ -+----- ------- --+---- ----+-- ------- ------- ------- ------- ------- ------- -+----- ---+--- ------+ ------- ------- ------- ------- ---+
+------
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCH | SIZE | UPLOAD DATE |
+------
| | 4278883fd349 | yes | ubuntu 16.04 LTS amd64 (daily) (20180321) | x86_64 | 92.16MB | Mar 21, 2018 at 12:00am (UTC) |
$ lxc launch minimal- ubuntu- daily:4278883fd 349 x-min