Re: how to create grub rescue kernel entry?

2016-03-28 Thread Andre Robatino
Correction, it should be "grub2-mkconfig -o /boot/grub2/grub.cfg" (not 
grub.conf).
--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org

Re: how to create grub rescue kernel entry?

2016-03-19 Thread Michal Jaegermann
On Fri, Mar 18, 2016 at 11:09:49AM -0500, Dennis Gilmore wrote:
> 
> I should be generated when you do a kernel install next.

> 
> though I do wonder how my resuce 
> kernel from 2013 will do with a fedora 24 system

As you say - if you will remove an existing rescue kernel and its
initrams just before installing a new kernel then a rescue will be
"refreshed" from the one you are now installing.  Assuming that you
installed required dracut support and you do not have
'dracut_rescue_image="no"' in your dracut configuration.

This actually worked wherever I tried.

   Michal
--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org

how to create grub rescue kernel entry?

2016-03-19 Thread Andre Robatino
The F24 lives don't contain a rescue kernel or generate the corresponding
grub entry (see https://bugzilla.redhat.com/show_bug.cgi?id=1317709 ). Is
there a way to install the rescue kernel if it was not done during the
initial install? (The package dracut-config-rescue was not installed, and
I've installed that manually.) I've nominated this bug as a FE, but it would
be less important if there's a way to fix the problem after install.
--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org

Re: how to create grub rescue kernel entry?

2016-03-19 Thread Kevin Fenzi
On Fri, 18 Mar 2016 11:52:44 -0600
Michal Jaegermann  wrote:

> On Fri, Mar 18, 2016 at 11:09:49AM -0500, Dennis Gilmore wrote:
> > 
> > I should be generated when you do a kernel install next.  
> 
> > 
> > though I do wonder how my resuce 
> > kernel from 2013 will do with a fedora 24 system  
> 
> As you say - if you will remove an existing rescue kernel and its
> initrams just before installing a new kernel then a rescue will be
> "refreshed" from the one you are now installing.  Assuming that you
> installed required dracut support and you do not have
> 'dracut_rescue_image="no"' in your dracut configuration.
> 
> This actually worked wherever I tried.

I removed the entry from my grub2-efi.cfg and it never came back until
I realized that I hadn't removed the rescue stuff from /boot. if you
have an old rescue kernel and initramfs it won't make a new one. 

Removing those and installing a new kernel did make it work. 

So, to cleanly remove it: 

* remove the grub2* entry
* rm the stuff from /boot
* dnf remove dracut-config-rescue

kevin


pgpj8fBbKIIBe.pgp
Description: OpenPGP digital signature
--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org

Re: how to create grub rescue kernel entry?

2016-03-19 Thread Dennis Gilmore
On Friday, March 18, 2016 1:47:43 AM CDT Andre Robatino wrote:
> The F24 lives don't contain a rescue kernel or generate the corresponding
> grub entry (see https://bugzilla.redhat.com/show_bug.cgi?id=1317709 ). Is
> there a way to install the rescue kernel if it was not done during the
> initial install? (The package dracut-config-rescue was not installed, and
> I've installed that manually.) I've nominated this bug as a FE, but it would
> be less important if there's a way to fix the problem after install. --
> test mailing list
> test@lists.fedoraproject.org
> To unsubscribe:
> http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org

I should be generated when you do a kernel install next.

all it does is copies a kernel and make s a generic initramfs for it. its 
supposed to be a known working kernel.  though I do wonder how my resuce 
kernel from 2013 will do with a fedora 24 system

Dennis

signature.asc
Description: This is a digitally signed message part.
--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org

Re: how to create grub rescue kernel entry?

2016-03-18 Thread Sérgio Basto
On Sex, 2016-03-18 at 01:47 +, Andre Robatino wrote:
> The F24 lives don't contain a rescue kernel or generate the
> corresponding
> grub entry (see https://bugzilla.redhat.com/show_bug.cgi?id=1317709
> ). Is
> there a way to install the rescue kernel if it was not done during
> the
> initial install? (The package dracut-config-rescue was not installed,
> and
> I've installed that manually.) I've nominated this bug as a FE, but
> it would
> be less important if there's a way to fix the problem after install.

I remember that ask have this question and the answer. 

/etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r)
/boot/vmlinuz-$(uname -r)

works for me in F23 .

after google it: "how to create grub rescue
site:ask.fedoraproject.org"best reference is : 
https://ask.fedoraproject.org/en/question/40409/cant-boot-into-rescue-m
ode-how-to-re-generate-initramfs/

Best regards,
-- 
Sérgio M. B.

--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org

Re: how to create grub rescue kernel entry?

2016-03-18 Thread Andre Robatino
> /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r)
> /boot/vmlinuz-$(uname -r)

Thanks. I ran this command in F24 and it created the rescue mode files in 
/boot. Looking at /boot/grub2/grub.conf indicated that the rescue mode grub 
entry was the first on the list, so I ran "grub2-mkconfig -o 
/boot/grub2/grub.conf" manually and it put the rescue mode entry in the proper 
location (after all the non-rescue kernels).
--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org

Re: how to create grub rescue kernel entry?

2016-03-18 Thread Andre Robatino
When I used this method to create new rescue mode files for my F23 box (which 
already had a rescue mode entry), I got an additional rescue mode entry at the 
top of the grub menu. This was fixed by manually editing /boot/grub2/grub.conf 
to delete the new entry (as mentioned in 
https://ask.fedoraproject.org/en/question/40409/cant-boot-into-rescue-mode-how-to-re-generate-initramfs/
 ).
--
test mailing list
test@lists.fedoraproject.org
To unsubscribe:
http://lists.fedoraproject.org/admin/lists/test@lists.fedoraproject.org