Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
3fefd6e6
Commit
3fefd6e6
authored
Jan 15, 2014
by
Stéphane Graber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ubuntu: Don't fail on invalid locale
Signed-off-by:
Stéphane Graber
<
stgraber@ubuntu.com
>
Acked-by:
Serge E. Hallyn
<
serge.hallyn@ubuntu.com
>
parent
19668d8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lxc-ubuntu.in
templates/lxc-ubuntu.in
+4
-4
No files found.
templates/lxc-ubuntu.in
View file @
3fefd6e6
...
@@ -87,11 +87,11 @@ EOF
...
@@ -87,11 +87,11 @@ EOF
# make sure we have the current locale defined in the container
# make sure we have the current locale defined in the container
if
[
-z
"
$LANG
"
]
||
echo
$LANG
|
grep
-E
-q
"^C(
\.
.+)*$"
;
then
if
[
-z
"
$LANG
"
]
||
echo
$LANG
|
grep
-E
-q
"^C(
\.
.+)*$"
;
then
chroot
$rootfs
locale-gen en_US.UTF-8
chroot
$rootfs
locale-gen en_US.UTF-8
||
true
chroot
$rootfs
update-locale
LANG
=
en_US.UTF-8
chroot
$rootfs
update-locale
LANG
=
en_US.UTF-8
||
true
else
else
chroot
$rootfs
locale-gen
$LANG
chroot
$rootfs
locale-gen
$LANG
||
true
chroot
$rootfs
update-locale
LANG
=
$LANG
chroot
$rootfs
update-locale
LANG
=
$LANG
||
true
fi
fi
# generate new SSH keys
# generate new SSH keys
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment