lxc-debian: Remove perl, use sed instead

Signed-off-by: Laurent Vallar <val@zbla.net>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Laurent Vallar 2013-10-16 22:46:57 +02:00 committed by Stéphane Graber
parent 90ccc878de
commit 09da66e667

View File

@ -81,7 +81,7 @@ EOF
chroot $rootfs update-locale LANG=en_US.UTF-8
else
encoding=$(echo $LANG | cut -d. -f2)
chroot $rootfs perl -pe "s/^# (${LANG} ${encoding})/\1/" \
chroot $rootfs sed -e "s/^# \(${LANG} ${encoding}\)/\1/" \
-i /etc/locale.gen 2>/dev/null
chroot $rootfs locale-gen $LANG $encoding
chroot $rootfs update-locale LANG=$LANG