mkinitrd unification across distributions
 help / color / mirror / Atom feed
From: Warren Togami <wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: initramfs <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [PATCH] LIBDIR detection without /proc
Date: Wed, 20 May 2009 18:02:27 -0400	[thread overview]
Message-ID: <4A147DF3.4070108@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0905202309060.7805-bvJ793YqIODNUDpmljszgg@public.gmane.org>

On 05/20/2009 05:24 PM, Andreas Thienemann wrote:
> On Wed, 20 May 2009, Warren Togami wrote:
>
>> If you have 64bit plymouth it will be at that location.  If it isn't at
>> that location, then the previous lib vs lib64 check and subsequent
>> copying would have failed to do its job anyway.  So what is the possible
>> harm?
>
> For this specific case, it would work in hopefully all cases.
> I have no idea how common ia32 systems with amd64 binaries in addition to
> the used ia32 binaries are. This is something which would throw off the
> check.

If a 32bit system has 64bit binaries installed it is an error.

>
> I've seen such things on development systems, which is why I'm personally
> tending to favor uname output... In any case, it's Harald's call. :)

You cannot rely on detection of any aspect of the running system to 
decide what gets included in the initrd.  Isn't a big point of dracut to 
exist to have a generated initrd that can boot any system of the same arch?

The other case where it reads /proc/mounts to decide which filesystems 
to include in the initrd is another example of where we shouldn't be 
relying on the running system for detection.

Warren
--
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

  parent reply	other threads:[~2009-05-20 22:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A147DF3.4070108@redhat.com \
    --to=wtogami-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox