]> git.baikalelectronics.ru Git - kernel.git/commit
kbuild: make sorting initramfs contents independent of locale
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Fri, 17 Aug 2018 12:03:19 +0000 (14:03 +0200)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 22 Aug 2018 14:21:43 +0000 (23:21 +0900)
commitda5f819828b9cb11612baae8698c3036e70c6b6f
treeb0cd5e82002d5e0f2ee524b036f8f9b1dca594ad
parent58cdb514c62c6c81c1c148478d3d736b87a0f658
kbuild: make sorting initramfs contents independent of locale

Some LANG values (e.g. pl_PL.UTF-8) cause the sort command to output
files before their parent directories, which makes them inaccessible for
the kernel. In other words, when the kernel populates the rootfs, it is
unable to create files whose parent directories have not been yet created.

This patch makes sorting use the default (LANG=C) locale, which results in
correctly laid out initramfs images (parent directories before files).

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/gen_initramfs_list.sh