Commit 09da66e6 by Laurent Vallar Committed by Stéphane Graber

lxc-debian: Remove perl, use sed instead

parent 90ccc878
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment