From: Michael Tremer Date: Tue, 22 Apr 2014 19:09:03 +0000 (+0200) Subject: Add locales to installed. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=bb8895e259b40bf53276e5cc413287535b03353f Add locales to installed. Because of the locale switch, no locales have been included in the installer initrd and no characters other than the ASCII characters could be shown. --- diff --git a/lfs/initrd b/lfs/initrd index cc1695680..fdb3a55ba 100644 --- a/lfs/initrd +++ b/lfs/initrd @@ -93,6 +93,14 @@ $(TARGET) : cp -f /etc/nsswitch.conf /install/initrd/etc/ cp -f $(DIR_SRC)/config/initrd/dhcpc/* /install/initrd/var/ipfire/dhcpc/dhcpcd-hooks/ + # Install needed locales. + -mkdir -pv /install/initrd/usr/lib/locale + for lang in $(DIR_SRC)/langs/*; do \ + for path in /usr/lib/locale/$${lang##*/}*; do \ + [ -d "$${path}" ] && cp -lrvf "$${path}" /install/initrd/usr/lib/locale/; \ + done; \ + done + cd /install/initrd && find . | cpio -o -H newc | lzma > /install/images/initrd cd /install/initrd && find ./ -ls > $(DIR_INFO)/_build.initrd.log