Re: rescue kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Chris

===========================================================================
 Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===========================================================================


> Sent: Monday, February 09, 2015 at 11:06 PM
> From: "Chris Murphy" <lists@xxxxxxxxxxxxxxxxx>
> To: "Community support for Fedora users" <users@xxxxxxxxxxxxxxxxxxxxxxx>
> Subject: Re: rescue kernel
>
> On Mon, Feb 9, 2015 at 2:42 PM, Patrick Dupre <pdupre@xxxxxxx> wrote:
> > Hello,
> >
> > I tried to generate a new rescue kernel.
> > I did:
> >  /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh $(uname -r) /boot/vmlinuz-$(uname -r)
> >
> > I did not get any thing done.
> > Thus I checked the file:
> >  /etc/kernel/postinst.d/51-dracut-rescue-postinst.sh
> >
> > and commented the line:
> > [[ -f $INITRDFILE ]] && [[ -f $NEW_KERNEL_IMAGE ]] && exit 0
> > There is already and lod rescue kernel thus it does not generate a new one!
> > Is it normal?
> 
> Yes. There is only one rescue initramfs created, so you have to delete
> one to get a new one.
> 
> >
> > Then I got:
> > grubby fatal error: unable to find a suitable template
> >
> > (due to  new-kernel-pkg --install 3.18.5-101.fc20.x86_64 --kernel-image /boot/vmlinuz-0-rescue-f14e53f3162847d4ae17fd1ca988e33c --initrdfile /boot/initramfs-0-rescue-f14e53f3162847d4ae17fd1ca988e33c.img --banner "Fedora 20 Rescue f14e53f3162847d4ae17fd1ca988e33c")
> 
> To know for sure you need to debug it. I think bash -x in front of
> new-kernel-pkg may work to expose the exact grubby command used. Then
> you use that same grubby command manually, but add --debug flag and
> see what it's complaining about.
> 
> What filesystem is /boot on?

/dev/sdc6
ext4

Does it help?

+ PATH=/sbin:/bin:/root/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ lilo=/sbin/lilo
+ kernelName=vmlinuz
+ '[' -x ./grubby ']'
+ grubby=/sbin/grubby
+ '[' -f /etc/sysconfig/kernel ']'
+ . /etc/sysconfig/kernel
++ UPDATEDEFAULT=yes
++ DEFAULTKERNEL=kernel
+ '[' -f /etc/sysconfig/uboot ']'
+ cfgGrub2=
+ cfgGrub2Efi=
+ cfgGrub=
+ cfgLilo=
+ cfgExtlinux=
+ cfguBoot=
+ runLilo=
+ grubConfig=
+ grub2Config=
+ grub2EfiConfig=
+ extlinuxConfig=
++ uname -m
+ ARCH=x86_64
+ '[' x86_64 = ia64 ']'
+ '[' x86_64 = ppc64 -o x86_64 = ppc ']'
+ '[' x86_64 = sparc -o x86_64 = sparc64 ']'
+ '[' x86_64 = s390 -o x86_64 = s390x ']'
+ [[ x86_64 =~ armv[5|7].*l ]]
+ liloConfig=/etc/lilo.conf
++ readlink -f /etc/grub.conf
+ grubConfig=/etc/grub.conf
++ readlink -f /etc/grub2.cfg
+ grub2Config=/boot/grub2/grub.cfg
++ readlink -f /etc/grub2-efi.cfg
+ grub2EfiConfig=/etc/grub2-efi.cfg
++ readlink -f /etc/extlinux.conf
+ extlinuxConfig=/boot/extlinux/extlinux.conf
+ bootPrefix=/boot
+ liloFlag=lilo
+ isx86=yes
+ mode=
+ version=
+ initrd=
+ dracut=
+ dracuthostonly=
+ initrdfile=
+ moddep=
+ verbose=
+ makedefault=
+ package=
+ mbkernel=
+ mbargs=
+ adddracutargs=
+ addplymouthinitrd=
+ '[' 8 -gt 0 ']'
+ case $1 in
+ '[' -z '' ']'
+ mode=--install
+ shift
+ '[' 7 -gt 0 ']'
+ case $1 in
+ '[' -z --install ']'
+ '[' -z '' ']'
+ version=3.18.5-101.fc20.x86_64
+ shift
+ '[' 6 -gt 0 ']'
+ case $1 in
+ [[ --kernel-image == --kernel-image\=* ]]
+ kernelImage=/boot/vmlinuz-0-rescue-f14e53f3162847d4ae17fd1ca988e33c
+ shift
+ [[ -f /boot/vmlinuz-0-rescue-f14e53f3162847d4ae17fd1ca988e33c ]]
+ shift
+ '[' 4 -gt 0 ']'
+ case $1 in
+ [[ --initrdfile == --initrdfile\=* ]]
+ initrdfile=/boot/initramfs-0-rescue-f14e53f3162847d4ae17fd1ca988e33c.img
+ shift
+ shift
+ '[' 2 -gt 0 ']'
+ case $1 in
+ [[ --banner == --banner\=* ]]
+ banner='Fedora 20 Rescue f14e53f3162847d4ae17fd1ca988e33c'
+ shift
+ shift
+ '[' 0 -gt 0 ']'
+ '[' --install '!=' --install -a --install '!=' --remove -a --install '!=' --update -a --install '!=' --rpmposttrans ']'
+ '[' -z 3.18.5-101.fc20.x86_64 ']'
+ '[' --install '!=' --install -a '' ']'
++ cut -d . -f 1,2
++ echo
+ kernelmajor=
+ '[' x86_64 = ppc64 -o x86_64 = ppc ']'
+ [[ -n /boot/vmlinuz-0-rescue-f14e53f3162847d4ae17fd1ca988e33c ]]
+ '[' -z /boot/initramfs-0-rescue-f14e53f3162847d4ae17fd1ca988e33c.img ']'
+ '[' -n '' ']'
+ '[' -n '' -o -n '' ']'
+ '[' --install == --install -a yes == yes -a -n '' -a -n kernel -a '' == kernel ']'
+ '[' '' == make ']'
+ '[' '' == remove ']'
+ '[' '' == make ']'
+ '[' '' == remove ']'
+ '[' '!' -x /sbin/grubby ']'
+ '[' -n /etc/grub.conf ']'
+ '[' -f /etc/grub.conf ']'
+ '[' -n /boot/grub2/grub.cfg ']'
+ '[' -f /boot/grub2/grub.cfg ']'
+ cfgGrub2=1
+ '[' -n /etc/grub2-efi.cfg ']'
+ '[' -f /etc/grub2-efi.cfg ']'
+ '[' -n /etc/lilo.conf ']'
+ '[' -f /etc/lilo.conf ']'
+ '[' -n /boot/extlinux/extlinux.conf ']'
+ '[' -f /boot/extlinux/extlinux.conf ']'
+ '[' -n '' ']'
+ '[' -n '' -a -z '' ']'
+ '[' -n '' -a -n yes ']'
+ '[' --install == --install ']'
+ install
+ '[' '!' -f /boot/vmlinuz-0-rescue-f14e53f3162847d4ae17fd1ca988e33c ']'
+ INITRD=
+ '[' -f /boot/initramfs-0-rescue-f14e53f3162847d4ae17fd1ca988e33c.img ']'
+ '[' -n '' ']'
+ INITRD='--initrd /boot/initramfs-0-rescue-f14e53f3162847d4ae17fd1ca988e33c.img'
+ '[' -n '' ']'
+ '[' -d /proc/iSeries ']'
++ awk '{ if ($1 !~ /^[ \t]*#/ && $2 == "/") { print $1; }}' /etc/fstab
+ rootdevice=/dev/mapper/VolGrpSys2-root
+ '[' /dev/mapper/VolGrpSys2-root = '' ']'
+ '[' -n '' -a -n '' -a lilo '!=' elilo ']'
+ '[' -n 'Fedora 20 Rescue f14e53f3162847d4ae17fd1ca988e33c' ']'
+ title='Fedora 20 Rescue f14e53f3162847d4ae17fd1ca988e33c (3.18.5-101.fc20.x86_64)'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n 1 ']'
+ '[' -n '' ']'
+ /sbin/grubby --grub2 -c /boot/grub2/grub.cfg --add-kernel=/boot/vmlinuz-0-rescue-f14e53f3162847d4ae17fd1ca988e33c --initrd /boot/initramfs-0-rescue-f14e53f3162847d4ae17fd1ca988e33c.img --copy-default --title 'Fedora 20 Rescue f14e53f3162847d4ae17fd1ca988e33c (3.18.5-101.fc20.x86_64)' '--args=root=/dev/mapper/VolGrpSys2-root ' '--remove-kernel=TITLE=Fedora 20 Rescue f14e53f3162847d4ae17fd1ca988e33c (3.18.5-101.fc20.x86_64)'
grubby fatal error: unable to find a suitable template
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ '[' -n '' ']'
+ exit 0


> 
> -- 
> Chris Murphy
> -- 
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
>
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux