mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-17 19:49:59 +00:00
generate locales on debian
Let's do like the ubuntu template and generate locales automatically. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
5bad66ba56
commit
f1fa1a0866
@ -64,7 +64,13 @@ $hostname
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
# reconfigure some services
|
# reconfigure some services
|
||||||
|
if [ -z "$LANG" ]; then
|
||||||
chroot $rootfs locale-gen en_US.UTF-8
|
chroot $rootfs locale-gen en_US.UTF-8
|
||||||
|
chroot $rootfs update-locale LANG=en_US.UTF-8
|
||||||
|
else
|
||||||
|
chroot $rootfs locale-gen $LANG
|
||||||
|
chroot $rootfs update-locale LANG=$LANG
|
||||||
|
fi
|
||||||
|
|
||||||
# remove pointless services in a container
|
# remove pointless services in a container
|
||||||
chroot $rootfs /usr/sbin/update-rc.d -f umountfs remove
|
chroot $rootfs /usr/sbin/update-rc.d -f umountfs remove
|
||||||
|
Loading…
Reference in New Issue
Block a user