#! /bin/sh -e # Temporary workaround for LP #136682 # Copy this file to /usr/share/initramfs-tools/hooks/ntfs_locale # and run: sudo update-initramfs -u # # It will use the current locale, usually defined in /etc/default/locale # To overrule this, run for instance: LANG=en_US.utf8 sudo update-initramfs -u # # You must also add rootflags=locale=en_US.utf8 to your kernel options, by # editing the "#kopt" line in /boot/grub/menu.lst and run: sudo update-grub PREREQ="" prereqs () { echo "$PREREQ" } case $1 in prereqs) prereqs exit 0 ;; esac . /usr/share/initramfs-tools/hook-functions LOCALE=`echo $LANG | sed -e 's/UTF/utf/' -e 's/-8/8/'` if [ -d /usr/lib/locale/$LOCALE ]; then mkdir -p "$DESTDIR/usr/lib/locale" cp -r /usr/lib/locale/$LOCALE "$DESTDIR/usr/lib/locale" echo "$0: Added locale: $LOCALE" else echo "$0: Could not add locale: $LOCALE" fi exit 0