]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut: unset LC_* after setting LANG and LC_ALL
authorHarald Hoyer <harald@redhat.com>
Wed, 18 Jan 2017 09:35:41 +0000 (10:35 +0100)
committerHarald Hoyer <harald@redhat.com>
Wed, 18 Jan 2017 09:35:41 +0000 (10:35 +0100)
otherwise bash/glibc might complain verbosely about not finding locales

dracut.sh

index 02b32645b21e5dfc9a15b4df42af51dce6df45c3..4f33d0a02385c5901fcb63c8bbf33d8a81a54f43 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -627,10 +627,10 @@ if [[ $kernel ]]; then
     fi
 fi
 
-unset LC_MESSAGES
-unset LC_CTYPE
 export LC_ALL=C
 export LANG=C
+unset LC_MESSAGES
+unset LC_CTYPE
 unset LD_LIBRARY_PATH
 unset LD_PRELOAD
 unset GREP_OPTIONS