Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-27 Thread Tom H
On Fri, Aug 26, 2011 at 1:30 PM, Scott Robbins  wrote:
> On Fri, Aug 26, 2011 at 12:12:13PM -0400, Tom H wrote:
>> On Fri, Aug 26, 2011 at 12:01 PM, Scott Robbins  wrote:
>> >
>> > I now have my own, very small page, which is Fedora centric at
>> > present...
>> >
>> > http://home.roadrunner.com/~computertaijutsu/grub2.html
>> >
>> > So far, it only covers editing /etc/default/grub.d, 40_custom and using
>> > custom.cfg.
>>
>> Typo:
>> grub2-mkconfig -o /boot/grub/grub.cfg
>> should be
>> grub2-mkconfig -o /boot/grub2/grub.cfg
>> for Fedora
>
> Thank you Tom, it's fixed now.

You're welcome. Good luck with the howto.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Scott Robbins
On Fri, Aug 26, 2011 at 12:12:13PM -0400, Tom H wrote:
> On Fri, Aug 26, 2011 at 12:01 PM, Scott Robbins  wrote:
> > I now have my own, very small page, which is Fedora centric at
> > present...
> >
> > http://home.roadrunner.com/~computertaijutsu/grub2.html
> >
> > So far, it only covers editing /etc/default/grub.d, 40_custom and using
> > custom.cfg.
> 
> Typo:
> grub2-mkconfig -o /boot/grub/grub.cfg
> should be
> grub2-mkconfig -o /boot/grub2/grub.cfg
> for Fedora

Thank you Tom, it's fixed now.

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Cordelia: You're just a souless bloodsucking demon. They're
LAWYERS
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Tom H
On Fri, Aug 26, 2011 at 12:01 PM, Scott Robbins  wrote:
> On Fri, Aug 26, 2011 at 09:33:59AM -0400, Tom H wrote:
>> On Fri, Aug 26, 2011 at 8:36 AM, Scott Robbins  wrote:
>> > On Thu, Aug 25, 2011 at 11:47:18PM -0700, Adam Williamson wrote:
>> >>
>> >> In my defence, I don't run Ubuntu or anything evil like that. I just
>> >> cargo-cult things I vaguely remember from Google searches. That's much
>> >> better, right?
>> >
>> > We'd forgive you.
>> >
>> > Documentation is still, surprisingly sparse, save for Ubuntu, Gentoo,
>> > and Arch.
>>
>> I saved these a while ago and haven't visited them in over a year so
>> they might not be current or even live (I've just deleted the "engrub"
>> url) but here goes:
>
> I now have my own, very small page, which is Fedora centric at
> present...
>
> http://home.roadrunner.com/~computertaijutsu/grub2.html
>
> So far, it only covers editing /etc/default/grub.d, 40_custom and using
> custom.cfg.

Typo:
grub2-mkconfig -o /boot/grub/grub.cfg
should be
grub2-mkconfig -o /boot/grub2/grub.cfg
for Fedora
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Scott Robbins
On Fri, Aug 26, 2011 at 09:33:59AM -0400, Tom H wrote:
> On Fri, Aug 26, 2011 at 8:36 AM, Scott Robbins  wrote:
> > On Thu, Aug 25, 2011 at 11:47:18PM -0700, Adam Williamson wrote:
> >>
> >> In my defence, I don't run Ubuntu or anything evil like that. I just
> >> cargo-cult things I vaguely remember from Google searches. That's much
> >> better, right?
> >
> > We'd forgive you.
> >
> > Documentation is still, surprisingly sparse, save for Ubuntu, Gentoo,
> > and Arch.
> 
> I saved these a while ago and haven't visited them in over a year so
> they might not be current or even live (I've just deleted the "engrub"
> url) but here goes:

I now have my own, very small page, which is Fedora centric at
present...

http://home.roadrunner.com/~computertaijutsu/grub2.html

So far, it only covers editing /etc/default/grub.d, 40_custom and using
custom.cfg.


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: You won. Alright?  You came in and you killed them,
and you took their land.  That's what conquering nations do.  It's
what Caeser did, and he's not going around saying I came, I conquered,
I felt really bad about it.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Tom H
On Fri, Aug 26, 2011 at 8:36 AM, Scott Robbins  wrote:
> On Thu, Aug 25, 2011 at 11:47:18PM -0700, Adam Williamson wrote:
>>
>> In my defence, I don't run Ubuntu or anything evil like that. I just
>> cargo-cult things I vaguely remember from Google searches. That's much
>> better, right?
>
> We'd forgive you.
>
> Documentation is still, surprisingly sparse, save for Ubuntu, Gentoo,
> and Arch.

I saved these a while ago and haven't visited them in over a year so
they might not be current or even live (I've just deleted the "engrub"
url) but here goes:

http://en.gentoo-wiki.com/wiki/Grub2
http://manual.aptosid.com/en/sys-admin-grub2-en.htm
http://manual.sidux.com/en/sys-admin-grub2-en.htm
http://members.iinet.net/~herman546/p20.html
http://wiki.archlinux.org/index.php/GRUB2
http://wiki.ubuntuusers.de/grub_2
http://www.dedoimedo.com/computers/grub-2.html
http://www.kubuntuforums.net/forums/index.php?topic=3106368.0
http://www.linuxfromscratch.org/lfs/view/development/chapter06/grub.html
http://www.linuxfromscratch.org/lfs/view/development/chapter08/grub.html
http://www.linuxfromscratch.org/lfs/view/stable/chapter06/grub.html
http://www.linuxfromscratch.org/lfs/view/stable/chapter08/grub.html
http://www.ubuntuforums.org/showthread.php?t=1195275
http://www.ubuntuforums.org/showthread.php?t=1287602
https://help.ubuntu.com/community/Grub2
https://wiki.kubuntu.org/Grub2
https://wiki.ubuntu.com/Grub2
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Scott Robbins
On Thu, Aug 25, 2011 at 11:47:18PM -0700, Adam Williamson wrote:


> On Thu, 2011-08-25 at 21:27 -0400, Scott Robbins wrote:
> > 
> > Note the earlier exchange of emails.  update_grub is an Ubuntu command.
> 
> In my defence, I don't run Ubuntu or anything evil like that. I just
> cargo-cult things I vaguely remember from Google searches. That's much
> better, right?

We'd forgive you.  Well, I would, anyway.  (I'm reminded of the
statement, though I've forgotten where it's from--If you like someone,
and they spill their soup on you, you laugh, if you dislike someone, the
way they hold their fork is aggravating.)  

Documentation is still, surprisingly sparse, save for Ubuntu, Gentoo,
and Arch.  

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6


 Giles: This one?
 Buffy: Amethyst.
 Giles: Used for?
 Buffy: Breath mints?
 Giles: Charm bags, money spells and for cleansing one's aura.
 Buffy: Okay, so how do you know if one's aura's dirty? Somebody
comes by with a finger and writes 'wash me' on it?
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-26 Thread Tom H
On Fri, Aug 26, 2011 at 2:47 AM, Adam Williamson  wrote:
> On Thu, 2011-08-25 at 21:27 -0400, Scott Robbins wrote:
>> On Thu, Aug 25, 2011 at 07:05:55PM -0600, Peter G.  wrote:
>> > Adam Williamson wrote:
>> >
>> > > did you run 'update_grub'?
>> >
>> > no I didn't. first I heard of it. that might
>> > explain it. but I learned something and I think I
>> > prefer the custom.cfg method, anyway :-)
>>
>> Note the earlier exchange of emails.  update_grub is an Ubuntu command.
>
> In my defence, I don't run Ubuntu or anything evil like that. I just
> cargo-cult things I vaguely remember from Google searches. That's much
> better, right?

Evil? :)))

Debian/Ubuntu had an "update-grub" for grub1 and have an "update-grub"
and an update-grub2" for grub2.

update-grub just runs "grub-mkconfig -o /boot/grub/grub.cfg" and
update-grub2 just runs "update-grub".
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Adam Williamson
On Thu, 2011-08-25 at 21:27 -0400, Scott Robbins wrote:
> On Thu, Aug 25, 2011 at 07:05:55PM -0600, Peter G.  wrote:
> > Adam Williamson wrote:
> > 
> > > did you run 'update_grub'?
> > 
> > no I didn't. first I heard of it. that might 
> > explain it. but I learned something and I think I 
> > prefer the custom.cfg method, anyway :-)
> 
> Note the earlier exchange of emails.  update_grub is an Ubuntu command.

In my defence, I don't run Ubuntu or anything evil like that. I just
cargo-cult things I vaguely remember from Google searches. That's much
better, right?
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Scott Robbins
On Thu, Aug 25, 2011 at 07:05:55PM -0600, Peter G.  wrote:
> Adam Williamson wrote:
> 
> > did you run 'update_grub'?
> 
> no I didn't. first I heard of it. that might 
> explain it. but I learned something and I think I 
> prefer the custom.cfg method, anyway :-)

Note the earlier exchange of emails.  update_grub is an Ubuntu command.
In Fedora, changes are done by running grub2-mkconfig -o
/boot/grub/grub.cfg

However, like you, I prefer the custom.cfg since it avoids having to run
a command after a change.
> 

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Spike: A, my head. I think I'm sobering up. It's horrible. 
Ah... God... I wish I was dead. 
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Peter G.
Peter G.  wrote:

> Adam Williamson wrote:
> 
>> did you run 'update_grub'?
> 
> no I didn't. first I heard of it. that might
> explain it. but I learned something and I think 
I
> prefer the custom.cfg method, anyway :-)
> 

I don't seem to have that program, or if I do, 
it's not in my/root's path.

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Peter G.
Adam Williamson wrote:

> did you run 'update_grub'?

no I didn't. first I heard of it. that might 
explain it. but I learned something and I think I 
prefer the custom.cfg method, anyway :-)

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Adam Williamson
On Thu, 2011-08-25 at 18:54 -0400, Scott Robbins wrote:
> On Thu, Aug 25, 2011 at 03:16:25PM -0700, Adam Williamson wrote:
> > On Thu, 2011-08-25 at 12:21 -0600, Petrus de Calguarium wrote:
> > > Petrus de Calguarium wrote:
> > > 
> > 
> > did you run 'update_grub'? it seems to be needed after changing grub2
> > config. just like lilo! ahh, the good old days.
> 
> You mean the command detailed in the Ubuntu docs that doesn't seem to
> exist in F16?   Someone better get on the Fedora QA guys about
> that...oh...wait   :)
> 
> 
> Hopefully, soon Fedora will have its own docs, detailing the
> differences.  Unless a change is made, an F16 64 bit on a VM
> installed today does not have an update-grub, (by any name, such as
> update_grub, update-grub2, or whatever.)
> 
> 
> No, Petrus had the command correctly, grub2-mkconfig -o
> /boot/grub/grub.cfg  (And Petrus, thanks for the tip about making a
> custom.cfg, which does, as you pointed out, avoid the need to run a
> command.

ah. can you tell I didn't actually do much to grub2 yet? =) fortunately
it worked okay in all my tests.
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Scott Robbins
On Thu, Aug 25, 2011 at 03:16:25PM -0700, Adam Williamson wrote:
> On Thu, 2011-08-25 at 12:21 -0600, Petrus de Calguarium wrote:
> > Petrus de Calguarium wrote:
> > 
> 
> did you run 'update_grub'? it seems to be needed after changing grub2
> config. just like lilo! ahh, the good old days.

You mean the command detailed in the Ubuntu docs that doesn't seem to
exist in F16?   Someone better get on the Fedora QA guys about
that...oh...wait   :)


Hopefully, soon Fedora will have its own docs, detailing the
differences.  Unless a change is made, an F16 64 bit on a VM
installed today does not have an update-grub, (by any name, such as
update_grub, update-grub2, or whatever.)


No, Petrus had the command correctly, grub2-mkconfig -o
/boot/grub/grub.cfg  (And Petrus, thanks for the tip about making a
custom.cfg, which does, as you pointed out, avoid the need to run a
command.


-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Kendra: I call it Mr. Pointy.
Buffy: You named your stake?
Kendra: Yes.
Buffy: Remind me to get you a stuffed animal.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Adam Williamson
On Thu, 2011-08-25 at 12:21 -0600, Petrus de Calguarium wrote:
> Petrus de Calguarium wrote:
> 
> > I have installed F16α and with it grub2 to the MBR of /dev/sda. I am
> > experimenting happily with F16, but I am unable to add F15 to the
> > grub2 boot menu.
> > 
> > I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
> > /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
> > even though it is in grub.cfg.
> 
> I figured out that no matter what you put into /etc/grub.d/40_custom, 
> it will never show up in the grub2 menu, even though it does show up 
> in /boot/grub2/grub.cfg. Yes, I have made sure to run restorecon on 

did you run 'update_grub'? it seems to be needed after changing grub2
config. just like lilo! ahh, the good old days.
-- 
Adam Williamson
Fedora QA Community Monkey
IRC: adamw | Twitter: AdamW_Fedora | identi.ca: adamwfedora
http://www.happyassassin.net

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test

Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Tom H
On Thu, Aug 25, 2011 at 2:21 PM, Petrus de Calguarium
 wrote:
> Petrus de Calguarium wrote:
>
>> I have installed F16α and with it grub2 to the MBR of /dev/sda. I am
>> experimenting happily with F16, but I am unable to add F15 to the
>> grub2 boot menu.
>>
>> I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
>> /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
>> even though it is in grub.cfg.
>
> I figured out that no matter what you put into /etc/grub.d/40_custom,
> it will never show up in the grub2 menu, even though it does show up
> in /boot/grub2/grub.cfg. Yes, I have made sure to run restorecon on
> 40_custom after editing and that the permissions remain the same as
> the other files.

The standard 40_custom is:

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

and it hasn't always worked for me. I prefer to use:

#!/bin/sh
cat 

Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Petrus de Calguarium
Scott Robbins wrote:

>> > On Thu, Aug 25, 2011 at 12:21:37PM -0600, Petrus de Calguarium 
wrote:
>> > I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
>> > /boot/grub2/grub.cfg, but my F15 entry never shows up in the 
menu, even though it is in grub.cfg.

> Interesting.  I just tested, on a virtual machine, without an actual
> O/S, (just made up one) and it showed up on my grub menu.  Is it
> possible you made a typo?

Possible? Of course... but I checked it numerous times and it all 
works when I type it by hand at the grub prompt and it also works when 
I put it into custom.cfg (copy and paste). I have also written and 
rewritten it many times, trying all of the various suggestions here in 
this thread, etc. and variations and it never appears in the grub 
menu, not even in a defective state. All my entries simply do not show 
up at all.

> (Or accidentally deleted that line they say not to delete?)

I definitely did NOT delete that line ;-)

But no matter. Editing custom.cfg is actually preferable, since you 
don't need to change those scripts under /etc/grub.d and you don't 
have to run grub2-mkconfig -o /boot/grub2/grub.cfg. And these entries 
verily do show up in the menu.

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Scott Robbins
On Thu, Aug 25, 2011 at 12:21:37PM -0600, Petrus de Calguarium wrote:
> Petrus de Calguarium wrote:
> 
> > 
> > I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
> > /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
> > even though it is in grub.cfg.

Interesting.  I just tested, on a virtual machine, without an actual
O/S, (just made up one) and it showed up on my grub menu.  Is it
possible you made a typo?  (Or accidentally deleted that line they say
not to delete?)

-- 
Scott Robbins
PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Willow: On the other hand, maybe Rodney just stepped out
for a smoke.
Xander: For twenty-one hours?
Willow: It's addictive, you know.
-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test


Re: Adding Fedora15 to F16alpha grub2 menu {solved}

2011-08-25 Thread Petrus de Calguarium
Petrus de Calguarium wrote:

> I have installed F16α and with it grub2 to the MBR of /dev/sda. I am
> experimenting happily with F16, but I am unable to add F15 to the
> grub2 boot menu.
> 
> I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
> /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
> even though it is in grub.cfg.

I figured out that no matter what you put into /etc/grub.d/40_custom, 
it will never show up in the grub2 menu, even though it does show up 
in /boot/grub2/grub.cfg. Yes, I have made sure to run restorecon on 
40_custom after editing and that the permissions remain the same as 
the other files.

The solution:

create a file called /boot/grub2/custom.cfg and put your custom menu 
items in that. This file is automatically read by grub2, thanks to 
/etc/grub.d/41_custom, which causes custom.cfg to be read.

This works!

-- 
test mailing list
test@lists.fedoraproject.org
To unsubscribe: 
https://admin.fedoraproject.org/mailman/listinfo/test