Merge lp:~utlemming/cloud-init/cloud-init.profile.d into lp:~cloud-init-dev/cloud-init/trunk
Proposed by
Ben Howard
on 2012-03-30
| Status: | Superseded |
|---|---|
| Proposed branch: | lp:~utlemming/cloud-init/cloud-init.profile.d |
| Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
| Diff against target: |
98 lines (+83/-0) 2 files modified
profile.d/Z99-cloud-locale-test.sh (+82/-0) setup.py (+1/-0) |
| To merge this branch: | bzr merge lp:~utlemming/cloud-init/cloud-init.profile.d |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Scott Moser | 2012-03-30 | Needs Fixing on 2012-04-02 | |
|
Review via email:
|
|||
This proposal has been superseded by a proposal from 2012-04-02.
Description of the Change
Added profile.d script to inform users of bad locales.
To post a comment you must log in.
| Scott Moser (smoser) wrote : | # |
| Scott Moser (smoser) wrote : | # |
oh, and you can't return outside a function:
[ -f /var/lib/
At http://
[ -f /etc/default/
locale 2>&1 | cloud_locale_warn
review:
Needs Fixing
lp:~utlemming/cloud-init/cloud-init.profile.d
updated
on 2012-04-02
- 554. By Ben Howard on 2012-04-02
-
Fixed deficiency in merge proposal.


A couple things:
a.) use 'locale 2>&1 | locale_warn' as opposed to the here document.
I was surprised at what was so slow in this, and its the here document. Use a pipe and its much faster.
since we're not modifiying the environment at all, that is ok.
b.) I don't know how i feel about the /var/lib/ cloud/instance/ setting... i think i'd at least like the option of something to be multi-instance, and also would like a per-user setting. as the user who logs in cannot necessarily modify /var/lib/ cloud/instance/ . So just loop over a list of files, that can include the /var/lib/ cloud/instance path
c.) apt-cache search "^language- pack-[a- z][a-z] $"
might be slightly better, as the filtering is then built in.