Skip to content

Commit

Permalink
Including d-i languagelist in initrd in order evaluate l10n settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Sep 11, 2009
1 parent f416732 commit 3a04d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions hooks/live
Expand Up @@ -35,6 +35,9 @@ then
cp /etc/live.conf "${DESTDIR}"/etc
fi

mkdir -p "${DESTDIR}"/usr/share/live-initramfs
cp /usr/share/live-initramfs/languagelist "${DESTDIR}"/usr/share/live-initramfs

# Directories
mkdir -p "${DESTDIR}"/lib/live-initramfs

Expand Down
2 changes: 1 addition & 1 deletion scripts/live-functions
Expand Up @@ -35,7 +35,7 @@ lang2locale() {
langpart="${1%%_*}"
if [ "$1" != "C" ]; then
# Match the language code with 3rd field in languagelist
line=$(grep -v "^#" /root/usr/share/live-initramfs/languagelist | cut -f3,4,5 -d\; | grep -v ';C$' | grep "^$langpart;")
line=$(grep -v "^#" /usr/share/live-initramfs/languagelist | cut -f3,4,5 -d\; | grep -v ';C$' | grep "^$langpart;")
if [ -n "$line" ]; then
if [ "$(echo "$line" | grep -c '')" -gt 1 ]; then
# More than one match; try matching the
Expand Down

0 comments on commit 3a04d9f

Please sign in to comment.