All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Gilbert <floppym@gentoo.org>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: Improve support for genkernel in 10_linux
Date: Wed, 18 Apr 2012 11:39:01 -0400	[thread overview]
Message-ID: <CAJ0EP42_Srz8hWRzonS8hAtD_5QijjsKOyegAbeSCnmrGPpxow@mail.gmail.com> (raw)
In-Reply-To: <4F8EDAC1.7040402@gmail.com>

2012/4/18 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
> On 18.04.2012 17:06, Mike Gilbert wrote:
>> 2012/4/18 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
>>> On 15.04.2012 04:21, Mike Gilbert wrote:
>>>> On 04/11/2012 11:52 AM, Mike Gilbert wrote:
>>>>> 2012/4/11 Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com>:
>>>>>> On 11.04.2012 04:56, Mike Gilbert wrote:
>>>>>>> On 04/07/2012 05:54 PM, Mike Gilbert wrote:
>>>>>>>> Secondly, genkernel looks for the "real_root" kernel command line option
>>>>>>>> to determine the root filesystem. This is a holdover from the days when
>>>>>>>> we used true initrd images and we needed to use root=/dev/ram0.
>>>>>>>>
>>>>>>> It was brought to my attention that genkernel's initramfs code will in
>>>>>>> fact utilize "root" if "real_root" is unset. This part of my previous
>>>>>>> patch is therefore pointless.
>>>>>>>
>>>>>>> I have attached a revised patch containing only the changes necessary to
>>>>>>> detect a genkernel initramfs image.
>>>>>>>
>>>>>> pushd/popd isn't POSIX so we can't use it in our scripts. Also I don't
>>>>>> feel like glob expansion is the right thing to use here. Why not infer
>>>>>> the architecture from uname ?
>>>>> That should also work. Here's the logic that genkernel uses to populate ARCH:
>>>>>
>>>>> ARCH=`uname -m`
>>>>> case "${ARCH}" in
>>>>>      i?86)
>>>>>              ARCH="x86"
>>>>>              ;;
>>>>>      mips|mips64)
>>>>>              ARCH="mips"
>>>>>              ;;
>>>>>      arm*)
>>>>>              ARCH=arm
>>>>>              ;;
>>>>>      *)
>>>>>              ;;
>>>>> esac
>>>>>
>>>>> I'm thinking it would be a good idea to rename ARCH to something like
>>>>> GENKERNEL_ARCH. We should also let the user override this in
>>>>> /etc/default/grub.
>>>>>
>>>>> Does that sound ok?
>>>> I have modified my patch to implement what I describe above.
>>>>
>>> What is the reason to make it configurable? There shouldn't be any need
>>> to configure something that is autodetected
>>>
>> genkernel allows the user to cross-compile their kernel and/or
>> initramfs, in which case uname -m would not provide the correct value.
>>
>> I don't have a clear picture in my mind of how that would work with
>> grub, but I figure it would be better to err on the side of
>> flexibility.
> grub-mkconfig doesn't support cross-configuration and arch name is just
> one of the problems. Unless we have a designed system for this case it's
> useless to add stray bits which don't work anyway.
>

Alright, not a bit deal. Do you need a new patch from me?


  reply	other threads:[~2012-04-18 15:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-07 21:54 Improve support for genkernel in 10_linux Mike Gilbert
2012-04-11  2:56 ` Mike Gilbert
2012-04-11 12:05   ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-11 15:52     ` Mike Gilbert
2012-04-15  2:21       ` Mike Gilbert
2012-04-18  9:24         ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-18 15:06           ` Mike Gilbert
2012-04-18 15:16             ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-04-18 15:39               ` Mike Gilbert [this message]
2012-04-18 21:26                 ` Vladimir 'φ-coder/phcoder' Serbinenko

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=CAJ0EP42_Srz8hWRzonS8hAtD_5QijjsKOyegAbeSCnmrGPpxow@mail.gmail.com \
    --to=floppym@gentoo.org \
    --cc=grub-devel@gnu.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 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.