All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] LIBDIR detection without /proc
@ 2009-05-20 20:22 Warren Togami
       [not found] ` <4A146687.3020508-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Warren Togami @ 2009-05-20 20:22 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

bash-4.0# ./dracut -l -f /boot/initrd-2.6.29.3-140.fc11.i586.img 
2.6.29.3-140.fc11.i586
ldd: /proc/8072/exe: No such file or directory

modules.d/50plymouth/plymouth-populate-initrd

Could we please not rely on /proc to detect anything?  Something like 
the following would work fine.  It also has the benefit of being able to 
run without /proc mounted, which is great for building initrd's within a 
chroot.

diff --git a/modules.d/50plymouth/plymouth-populate-initrd 
b/modules.d/50plymouth/plymouth-populate-initrd
index df6e7c5..58b5b5a 100755
--- a/modules.d/50plymouth/plymouth-populate-initrd
+++ b/modules.d/50plymouth/plymouth-populate-initrd
@@ -1,5 +1,5 @@
  #!/bin/bash
-if ldd /proc/$$/exe |grep -q lib64; then
+if [ -f /usr/lib64/plymouth/text.so ]; then
      LIBDIR="/usr/lib64"
  else
      LIBDIR="/usr/lib"


Another issue, it appears this plymouth module is uncondtional? 
Shouldn't it skip plymouth install if it plymouth does not exist for the 
sake of other distributions?

Warren Togami
wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
--
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 related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-05-21  0:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-20 20:22 [PATCH] LIBDIR detection without /proc Warren Togami
     [not found] ` <4A146687.3020508-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-05-20 20:52   ` Andreas Thienemann
     [not found]     ` <Pine.LNX.4.58.0905202249560.7805-bvJ793YqIODNUDpmljszgg@public.gmane.org>
2009-05-20 20:57       ` Warren Togami
     [not found]         ` <4A146EBF.5060404-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-05-20 21:24           ` Andreas Thienemann
     [not found]             ` <Pine.LNX.4.58.0905202309060.7805-bvJ793YqIODNUDpmljszgg@public.gmane.org>
2009-05-20 22:02               ` Warren Togami
     [not found]                 ` <4A147DF3.4070108-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-05-21  0:37                   ` [PATCH] Check /sbin/plymouthd for arch instead of /proc/$$/exe Warren Togami

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.