summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-09-23 17:19:29 +0200
committerDave Reisner <dreisner@archlinux.org>2012-09-24 04:10:58 +0200
commit34b9a2b1509c0288a9635b8b3bdb32ca03df8270 (patch)
treecb28f6744c5cc7fbbf3f0c3f51937523e6b55906
parent2b227f8ac09c2767e621db5919e9da5d99e09b31 (diff)
downloadmkinitcpio-34b9a2b1509c0288a9635b8b3bdb32ca03df8270.tar.gz
mkinitcpio-34b9a2b1509c0288a9635b8b3bdb32ca03df8270.tar.xz
force bsdcpio to run with LANG=C
In case mkinitcpio is in run via chroot(1), this possibly silences a harmless warning about bsdcpio failing to set the default locale. This comes up fairly often with the recent install media and users think that it's something to be concerned about. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index bdeaa74..c80db8f 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -405,7 +405,7 @@ if [[ $GENIMG ]]; then
pushd "$BUILDROOT" >/dev/null
find . -print0 |
- bsdcpio "${cpio_opts[@]}" |
+ LANG=C bsdcpio "${cpio_opts[@]}" |
$COMPRESSION $COMPRESSION_OPTIONS > "$GENIMG"
pipesave=("${PIPESTATUS[@]}") # save immediately
popd >/dev/null