Skip to contentSkip to conversation

Add new recipes for grub2

PATCH In review Tom Zanussi 2 participants 7 messages Sep 14, 2011

lore
Share & tools
lore
#0 lore raw

cover Add new recipes for grub2

This patchset adds a new recipe for grub2 and an accompanying version of initramfs-live-install for use with it.

It's been boot-tested with the meta-intel BSPs crownbay-noemgd and sugarbay, and the legacy version (grub-0.97) was tested with emenlow.

A future patch will factor out the common parts of init_install_2.0.sh with init_install 1.0 - this initial patchset essentially just fixes what's necessary for YOCTO bug #1428 in order to get things working again.

Tom Zanussi (2):
grub2: new recipe
initramfs-live-install: add a version for use with grub2

 meta/recipes-bsp/grub/grub-1.99/40_custom          |    9 +
 .../grub/grub-1.99/grub-install.in.patch           |   13 ++
 meta/recipes-bsp/grub/grub_1.99.bb                 |   44 +++++
 .../initrdscripts/files/init-install_2.0.sh        |  178 ++++++++++++++++++++
 .../initrdscripts/initramfs-live-install_2.0.bb    |   22 +++
 5 files changed, 266 insertions(+), 0 deletions(-)
 create mode 100755 meta/recipes-bsp/grub/grub-1.99/40_custom
 create mode 100644 meta/recipes-bsp/grub/grub-1.99/grub-install.in.patch
 create mode 100644 meta/recipes-bsp/grub/grub_1.99.bb
 create mode 100644 meta/recipes-core/initrdscripts/files/init-install_2.0.sh
 create mode 100644 meta/recipes-core/initrdscripts/initramfs-live-install_2.0.bb
#1 lore raw

On Wed, Sep 14, 2011 at 02:39, Tom Zanussi <[email protected]> wrote:
/> A future patch will factor out the common parts of init_install_2.0.sh

Quoted 2 lines

with init_install 1.0 - this initial patchset essentially just fixes what's necessary for YOCTO bug #1428 in order to get things working again.

Wouldn't be better to drop 1.0 completely?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#2 lore raw
Quoted 7 lines · Otavio Salvador

On Wed, Sep 14, 2011 at 02:39, Tom Zanussi <[email protected]> wrote:
/> A future patch will factor out the common parts of init_install_2.0.sh

Quoted 2 lines

with init_install 1.0 - this initial patchset essentially just fixes what's necessary for YOCTO bug #1428 in order to get things working again.

Wouldn't be better to drop 1.0 completely?

You're right, and the original did do that essentially - on second thought it was much simpler - I'll resubmit something like that...

Thanks,

Tom

#3 lore raw
Quoted 11 lines · Tom Zanussi
Quoted 7 lines · Otavio Salvador

On Wed, Sep 14, 2011 at 02:39, Tom Zanussi <[email protected]> wrote:
/> A future patch will factor out the common parts of init_install_2.0.sh

Quoted 2 lines

with init_install 1.0 - this initial patchset essentially just fixes what's necessary for YOCTO bug #1428 in order to get things working again.

Wouldn't be better to drop 1.0 completely?

You're right, and the original did do that essentially - on second thought it was much simpler - I'll resubmit something like that...

I prefer to have 1.0 dropped since it avoids duplicated maintainence work and support. Besides, since this is gonna be a base of newer Yocto we ought to ensure that the layers do get their bsp updated (even thought I think the only user of it is meta-intel at this moment).

Nice that you agree with it.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#4 lore raw
Quoted 10 lines · Otavio Salvador
Quoted 9 lines · Tom Zanussi
Quoted 7 lines · Otavio Salvador

On Wed, Sep 14, 2011 at 02:39, Tom Zanussi <[email protected]> wrote:
/> A future patch will factor out the common parts of init_install_2.0.sh

Quoted 2 lines

with init_install 1.0 - this initial patchset essentially just fixes what's necessary for YOCTO bug #1428 in order to get things working again.

Wouldn't be better to drop 1.0 completely?

Quoted 9 lines
Quoted 2 lines

You're right, and the original did do that essentially - on second thought it was much simpler - I'll resubmit something like that...

I prefer to have 1.0 dropped since it avoids duplicated maintainence work and support. Besides, since this is gonna be a base of newer Yocto we ought to ensure that the layers do get their bsp updated (even thought I think the only user of it is meta-intel at this moment).

Well, my new version handles both grub 0.97 and grub2. We need to keep grub 0.97 around because grub2 is GPLv3.

Tom

Quoted 2 lines

Nice that you agree with it.

#5 lore raw
Quoted 2 lines · Tom Zanussi

Well, my new version handles both grub 0.97 and grub2.  We need to keep grub 0.97 around because grub2 is GPLv3.

Sure; fully agree on that but we can get rid of two different scripts and avoid duplicated maintainence work :-)

Signature · 3 lines
Otavio Salvador                             O.S. Systems
E-mail: [email protected]  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br
#6 lore raw
Quoted 7 lines · Otavio Salvador
Quoted 2 lines · Tom Zanussi

Well, my new version handles both grub 0.97 and grub2. We need to keep grub 0.97 around because grub2 is GPLv3.

Sure; fully agree on that but we can get rid of two different scripts and avoid duplicated maintainence work :-)

Definitely - my new patch does that - I'll post it in a few minutes...

Tom