kbuild: make sorting initramfs contents independent of locale
[linux-2.6-block.git] / scripts / gen_initramfs_list.sh
index 10e528b3a08fc4b4f4e2bde66ced6fa4d7684787..0aad760fcd8c3704a6445e1a5218082d3d069063 100755 (executable)
@@ -174,7 +174,7 @@ dir_filelist() {
        ${dep_list}header "$1"
 
        srcdir=$(echo "$1" | sed -e 's://*:/:g')
-       dirlist=$(find "${srcdir}" -printf "%p %m %U %G\n" | sort)
+       dirlist=$(find "${srcdir}" -printf "%p %m %U %G\n" | LANG=C sort)
 
        # If $dirlist is only one line, then the directory is empty
        if [  "$(echo "${dirlist}" | wc -l)" -gt 1 ]; then