~ubuntu-branches/ubuntu/trusty/lupin/trusty-proposed

« back to all changes in this revision

Viewing changes to scripts/local-bottom/lupin_setup

  • Committer: Package Import Robot
  • Author(s): Evan Dandrea
  • Date: 2011-09-22 12:20:19 UTC
  • Revision ID: package-import@ubuntu.com-20110922122019-uhooa7tm9aviqk96
Tags: 0.47
* Fix a typo that was preventing the timezone from getting set in Wubi
  disk image installs (LP: #855287).
* Provide a warning that the desktop is not localized and that
  Language Support needs to be run, for Wubi disk image installs in
  languages other than English (LP: #855295).

Show diffs side-by-side

added added

removed removed

Lines of Context:
152
152
printf 'LANG="%s"\n' "$locale" >> /root/etc/default/locale
153
153
printf 'LANG="%s"\n' "$locale" >> /root/etc/environment
154
154
chroot /root /usr/sbin/locale-gen "$locale" || true
 
155
if ! echo "$locale" | grep -qs '^en_'; then
 
156
        cp "/root/usr/share/language-support/incomplete-language-support-*.note" \
 
157
                /root/var/lib/update-notifier/user.d/
 
158
fi
155
159
 
156
160
# Timezone
157
161
zone="$(get_debconf "time/zone")"
158
162
echo "$zone" > /root/etc/timezone
159
 
rm -f /root/etc/timezone
 
163
rm -f /root/etc/localtime
160
164
cp -f /root/usr/share/zoneinfo/$zone /root/etc/localtime
161
165
# We skip setting the clock via NTP for now. It's time consuming, unlikely to
162
166
# work given the lack of networking in the initramfs :), and the clock being