Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
archiso
Commits
f2009c4c
Commit
f2009c4c
authored
Jul 01, 2011
by
Gerardo Exequiel Pozzi
Browse files
[configs/releng] Re-generate locales only if needed.
Signed-off-by:
Gerardo Exequiel Pozzi
<
vmlinuz386@yahoo.com.ar
>
parent
4090ba62
Changes
3
Hide whitespace changes
Inline
Side-by-side
configs/releng/build.sh
View file @
f2009c4c
...
...
@@ -30,6 +30,7 @@ make_customize_root_image() {
mkdir
-p
${
work_dir
}
/root-image/etc/pacman.d
wget
-O
${
work_dir
}
/root-image/etc/pacman.d/mirrorlist http://www.archlinux.org/mirrorlist/all/
sed
-i
"s/#Server/Server/g"
${
work_dir
}
/root-image/etc/pacman.d/mirrorlist
chroot
${
work_dir
}
/root-image /usr/sbin/locale-gen
:
>
${
work_dir
}
/build.
${
FUNCNAME
}
fi
}
...
...
configs/releng/root-image/etc/locale.gen
View file @
f2009c4c
...
...
@@ -153,7 +153,7 @@
#en_PH ISO-8859-1
#en_SG.UTF-8 UTF-8
#en_SG ISO-8859-1
#
en_US.UTF-8 UTF-8
en_US.UTF-8 UTF-8
#en_US ISO-8859-1
#en_ZA.UTF-8 UTF-8
#en_ZA ISO-8859-1
...
...
configs/releng/root-image/etc/rc.d/archiso
View file @
f2009c4c
...
...
@@ -12,10 +12,12 @@ do_makeuser ()
do_locale_gen
()
{
stat_busy
"Generating locales..."
sed
-i
"s/#
\(
${
LOCALE
/[@.]*
}
\)
/
\1
/"
/etc/locale.gen
/usr/sbin/locale-gen
>
/dev/null
stat_done
if
[[
${
LOCALE
}
!=
"en_US.UTF-8"
]]
;
then
stat_busy
"Generating locales..."
sed
-i
"s/#
\(
${
LOCALE
/[@.]*
}
\)
/
\1
/"
/etc/locale.gen
/usr/sbin/locale-gen
>
/dev/null
stat_done
fi
}
# If an alternate console was specified on the kernel command line,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment