Hi Harold,
Using Japanese ja_JP.UTF-8 environment,
the characters in load selinux policy message are garbled.
This simple patch mainly adds force LANG=C to selinux load policy.
Kind regards,
Haruo.
--- dracut-010/modules.d/98selinux/selinux-loadpolicy.sh.orig 2011-05-31
14:36:34.000000000 +0900
+++ dracut-010/modules.d/98selinux/selinux-loadpolicy.sh 2011-05-31
14:38:44.000000000 +0900
@@ -4,6 +4,11 @@
# FIXME: load selinux policy. this should really be done after we switchroot
+# We can't Japanese on normal console at boot time, so force LANG=C.
+if [ "$LANG" = "ja_JP.UTF-8" ]; then
+ LANG=C
+fi
+
rd_load_policy()
{
# If SELinux is disabled exit now--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html