All of lore.kernel.org
 help / color / mirror / Atom feed
* (PATCH) force LANG=C for selinux load policy
@ 2011-05-31  8:19 haruo.tomita-g3qfMnKXm6lL9jVzuh4AOg
       [not found] ` <4915AF3239D2024A92BCEC8BDAC566CE0116FA8A-9Dnl1bLEA2hgYsFYm0uEO7jjLBE8jN/0@public.gmane.org>
       [not found] ` <1306833291-sup-8652@ittemni>
  0 siblings, 2 replies; 4+ messages in thread
From: haruo.tomita-g3qfMnKXm6lL9jVzuh4AOg @ 2011-05-31  8:19 UTC (permalink / raw)
  To: harald-H+wXaHxf7aLQT0dZR+AlfA, initramfs-u79uwXL29TY76Z2rM5mHXA

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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-06-01  8:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-31  8:19 (PATCH) force LANG=C for selinux load policy haruo.tomita-g3qfMnKXm6lL9jVzuh4AOg
     [not found] ` <4915AF3239D2024A92BCEC8BDAC566CE0116FA8A-9Dnl1bLEA2hgYsFYm0uEO7jjLBE8jN/0@public.gmane.org>
2011-05-31  9:17   ` Harald Hoyer
     [not found]     ` <4DE4B247.6010005-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-06-01  8:02       ` haruo.tomita-g3qfMnKXm6lL9jVzuh4AOg
     [not found] ` <1306833291-sup-8652@ittemni>
2011-06-01  8:02   ` haruo.tomita-g3qfMnKXm6lL9jVzuh4AOg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.