locale-gen does not work in LXC container
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
langpack-locales (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Running locale-gen under a LXC container does not work..running it under a non-LXC container works.
Steps to repoduce:
1. For convience, run "lxc-create -t ubuntu-cloud -n locale-test"
2. Start you instance, "lxc-create -n locale-test"
3. Login in as "ubuntu", password "ubuntu"
4. Run "sudo locale-gen -
ubuntu@t1:/tmp$ sudo locale-gen en_US.UTF-8
Generating locales...
en_US.UTF-8... cannot read archive header: No such file or directory
failed
Generation complete.
Looking at an strace ( strace -f -ff -o /tmp/test locale-gen en_US-UTF-8) yields:
open("/
write(3, "\t\1\2\
ftruncate(3, 103860) = 0
mmap(NULL, 536870912, PROT_NONE, MAP_SHARED, 3, 0) = 0x7f79fcfae000
mmap(0x7f79fcfa
link("/
unlink(
fchmod(3, 0644) = -1 ENOENT (No such file or directory)
unlink(
write(2, "cannot change mode of new locale"..., 40) = 40
write(2, ": No such file or directory", 27) = 27
write(2, "\n", 1) = 1
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: libc-bin 2.15-0ubuntu2
ProcVersionSign
Uname: Linux 3.2.0-15-generic x86_64
NonfreeKernelMo
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Mon Feb 13 21:24:43 2012
Dependencies:
ProcEnviron: SHELL=/bin/bash
SourcePackage: eglibc
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | eglibc (Ubuntu) → langpack-locales (Ubuntu) |
Status changed to 'Confirmed' because the bug affects multiple users.