F27 : unable to install new kernel past 4.14.7
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 11 of 11
  1. #1
    Join Date
    Feb 2018
    Location
    France
    Posts
    7

    [SOLVED] F27 : unable to install new kernel past 4.14.7

    Hello,
    I have a curious problem with one machine
    since kernel 4.14.7 , new kernels are installed properly (for rpm) but nothing appears in /boot !!!

    content of /boot :

    ls /boot/
    1f5f587f7d654e91b3606df99236fcf3
    config-4.14.7-300.fc27.x86_64
    efi
    extlinux
    grub2
    initramfs-0-rescue-1f5f587f7d654e91b3606df99236fcf3.img
    initramfs-4.14.7-300.fc27.x86_64.img
    loader
    System.map-4.14.7-300.fc27.x86_64
    vmlinuz-0-rescue-1f5f587f7d654e91b3606df99236fcf3
    vmlinuz-4.14.7-300.fc27.x86_64


    install of new kernel with dfn or directly with rpm :
    rpm -ivh kernel-4.14.14-300.fc27.x86_64.rpm kernel-core-4.14.14-300.fc27.x86_64.rpm kernel-modules-4.14.14-300.fc27.x86_64.rpm
    Préparation... ################################# [100%]
    Mise à jour / installation...
    1:kernel-core-4.14.14-300.fc27 ################################# [ 33%]
    2:kernel-modules-4.14.14-300.fc27 ################################# [ 67%]
    3:kernel-4.14.14-300.fc27 ################################# [100%]

    the packages appears in rmp list :
    # rpm -qa |grep -i kernel |sort
    abrt-addon-kerneloops-2.10.5-1.fc27.x86_64
    kernel-4.14.14-300.fc27.x86_64
    kernel-4.14.7-300.fc27.x86_64
    kernel-core-4.14.14-300.fc27.x86_64
    kernel-core-4.14.7-300.fc27.x86_64
    kernel-devel-4.14.14-300.fc27.x86_64
    kernel-devel-4.14.7-300.fc27.x86_64
    kernel-headers-4.14.14-300.fc27.x86_64
    kernel-modules-4.14.14-300.fc27.x86_64
    kernel-modules-4.14.7-300.fc27.x86_64
    kernel-modules-extra-4.14.7-300.fc27.x86_64
    libreport-plugin-kerneloops-2.9.3-1.fc27.x86_64

    but there is nothing in /boot (thus nothing in grub.conf)
    ls /boot/
    1f5f587f7d654e91b3606df99236fcf3
    config-4.14.7-300.fc27.x86_64
    efi
    extlinux
    grub2
    initramfs-0-rescue-1f5f587f7d654e91b3606df99236fcf3.img
    initramfs-4.14.7-300.fc27.x86_64.img
    loader
    System.map-4.14.7-300.fc27.x86_64
    vmlinuz-0-rescue-1f5f587f7d654e91b3606df99236fcf3
    vmlinuz-4.14.7-300.fc27.x86_64

    same thing arises with others kernels ( 4.14.13 12, 11, 10 ... )
    I have checked permisions of /boot and space ( 15Go left)

    On another identical machine , the install of 4.14.14 is ok . absolutely no problem.

    Any idea ?

    thanks you
    Last edited by hector62; 18th February 2018 at 10:25 AM.

  2. #2
    Join Date
    Feb 2018
    Location
    France
    Posts
    7

    Re: F27 : unable to install new kernel past 4.14.7

    (cont.)

    today , I directly copied the /boot files for 4.14.14 (vmlinuz, initfram, System.map,...) from another machine and do grub2-mkconfig

    it works , but the problem re-appears for the upgrade to 4.14.16
    all files of kernel-core-4.14.16-300.fc27.x86_64 are installed except the files in /boot .

    dnf and rpm give no error

    I checked the permissions of /boot but all is correct

    I do a dnf remove on all kernel 4.14.14 rpm : all the files in /boot directory are correctly suppressed .


    I never see this !

  3. #3
    Join Date
    May 2011
    Posts
    228

    Re: F27 : unable to install new kernel past 4.14.7

    Verify the package to see if anything is missing:
    Code:
    rpm -Vv kernel-core-4.14.16
    especially for the entries in /boot directory.

    My guess is /boot is a separate partition that gets mounted after kernel upgrade was done.

  4. #4
    Join Date
    Feb 2018
    Location
    France
    Posts
    7

    Re: F27 : unable to install new kernel past 4.14.7

    boot is not a separate partition on this machine
    Code:
    # rpm -Vv kernel-core-4.14.16-300.fc27.x86_64 |grep -v modules
    .........  g /boot/.vmlinuz-4.14.16-300.fc27.x86_64.hmac
    .M.......  g /boot/System.map-4.14.16-300.fc27.x86_64
    .........  g /boot/config-4.14.16-300.fc27.x86_64
    .M.......  g /boot/initramfs-4.14.16-300.fc27.x86_64.img
    .........  g /boot/vmlinuz-4.14.16-300.fc27.x86_64
    .........    /etc/ld.so.conf.d/kernel-4.14.16-300.fc27.x86_64.conf
    .........    /usr/share/licenses/kernel-core
    .........  l /usr/share/licenses/kernel-core/COPYING
    it is normal : i have copied the files from another machine .
    the rpm used :
    Code:
    # rpm -qvlp   updates/27/x86_64/Packages/k/kernel-core-4.14.16-300.fc27.x86_64.rpm |grep -v modules
    -rw-r--r--    1 root    root                      168 janv. 31 20:35 /boot/.vmlinuz-4.14.16-300.fc27.x86_64.hmac
    -rw-r--r--    1 root    root                  3713874 janv. 31 20:35 /boot/System.map-4.14.16-300.fc27.x86_64
    -rw-r--r--    1 root    root                   191934 janv. 31 20:35 /boot/config-4.14.16-300.fc27.x86_64
    -rw-r--r--    1 root    root                 20971520 janv. 31 20:35 /boot/initramfs-4.14.16-300.fc27.x86_64.img
    -rwxr-xr-x    1 root    root                  8110168 janv. 31 20:35 /boot/vmlinuz-4.14.16-300.fc27.x86_64
    -r--r--r--    1 root    root                       67 janv. 31 20:39 /etc/ld.so.conf.d/kernel-4.14.16-300.fc27.x86_64.conf
    drwxr-xr-x    2 root    root                        0 janv. 31 21:12 /usr/share/licenses/kernel-core
    -rw-r--r--    1 root    root                    18693 nov. 12 19:46 /usr/share/licenses/kernel-core/COPYIN

  5. #5
    Join Date
    May 2011
    Posts
    228

    Re: F27 : unable to install new kernel past 4.14.7

    Maybe run rpm -Vv before you manually copy the files, so we can see what's going on. All I see is that the files are all there.

  6. #6
    Join Date
    Feb 2018
    Location
    France
    Posts
    7

    Re: F27 : unable to install new kernel past 4.14.7

    for test , i re-install 1.14.14
    Code:
    dnf install kernel-core-4.14.14-300.fc27.x86_64
    ... => OK
    
    # rpm -qa |grep -i kernel |sort
    kernel-4.14.16-300.fc27.x86_64
    kernel-core-4.14.14-300.fc27.x86_64
    kernel-core-4.14.16-300.fc27.x86_64
    (...) 
    
    but : 
    # rpm -Vv kernel-core.x86_64 4.14.14-300.fc27 |grep -v modules
    .........  g /boot/.vmlinuz-4.14.16-300.fc27.x86_64.hmac
    .M.......  g /boot/System.map-4.14.16-300.fc27.x86_64
    .........  g /boot/config-4.14.16-300.fc27.x86_64
    .M.......  g /boot/initramfs-4.14.16-300.fc27.x86_64.img
    .........  g /boot/vmlinuz-4.14.16-300.fc27.x86_64
    .........    /etc/ld.so.conf.d/kernel-4.14.16-300.fc27.x86_64.conf
    .........    /usr/share/licenses/kernel-core
    .........  l /usr/share/licenses/kernel-core/COPYING
    missing   g /boot/.vmlinuz-4.14.14-300.fc27.x86_64.hmac
    missing   g /boot/System.map-4.14.14-300.fc27.x86_64
    missing   g /boot/config-4.14.14-300.fc27.x86_64
    missing   g /boot/initramfs-4.14.14-300.fc27.x86_64.img
    missing   g /boot/vmlinuz-4.14.14-300.fc27.x86_64
    .........    /etc/ld.so.conf.d/kernel-4.14.14-300.fc27.x86_64.conf
    .........    /usr/share/licenses/kernel-core
    .........  l /usr/share/licenses/kernel-core/COPYING
    on another machine , using the same rpm kernel-core-4.14.14-300.fc27.x86_64 it is ok :
    Code:
    # rpm -Vv kernel-core |grep -v modules
    .........  g /boot/.vmlinuz-4.14.14-300.fc27.x86_64.hmac
    .M.......  g /boot/System.map-4.14.14-300.fc27.x86_64
    .........  g /boot/config-4.14.14-300.fc27.x86_64
    .M.......  g /boot/initramfs-4.14.14-300.fc27.x86_64.img
    .........  g /boot/vmlinuz-4.14.14-300.fc27.x86_64
    .........    /etc/ld.so.conf.d/kernel-4.14.14-300.fc27.x86_64.conf
    .........    /usr/share/licenses/kernel-core
    .........  l /usr/share/licenses/kernel-core/COPYING
    .........  g /boot/.vmlinuz-4.14.16-300.fc27.x86_64.hmac
    .M.......  g /boot/System.map-4.14.16-300.fc27.x86_64
    .........  g /boot/config-4.14.16-300.fc27.x86_64
    .M.......  g /boot/initramfs-4.14.16-300.fc27.x86_64.img
    .........  g /boot/vmlinuz-4.14.16-300.fc27.x86_64
    .........    /etc/ld.so.conf.d/kernel-4.14.16-300.fc27.x86_64.conf
    .........    /usr/share/licenses/kernel-core
    .........  l /usr/share/licenses/kernel-core/COPYING

  7. #7
    Join Date
    Feb 2018
    Location
    France
    Posts
    7

    Re: F27 : unable to install new kernel past 4.14.7

    I continue to search for the origin of the problem

    the package :
    $ rpm -qlp kernel-core-4.14.18-300.fc27.x86_64.rpm |grep -v module
    /boot/.vmlinuz-4.14.18-300.fc27.x86_64.hmac
    /boot/System.map-4.14.18-300.fc27.x86_64
    /boot/config-4.14.18-300.fc27.x86_64
    /boot/initramfs-4.14.18-300.fc27.x86_64.img
    /boot/vmlinuz-4.14.18-300.fc27.x86_64
    /etc/ld.so.conf.d/kernel-4.14.18-300.fc27.x86_64.conf
    /usr/share/licenses/kernel-core
    /usr/share/licenses/kernel-core/COPYING

    if i extract the files locally :
    $ rpm2cpio kernel-core-4.14.18-300.fc27.x86_64.rpm | cpio -idm
    53818 blocs
    [fcorne@hector dd]$ ls
    etc kernel-core-4.14.18-300.fc27.x86_64.rpm lib usr

    there is not /boot directory ?????


    If I do the same thing with a centos kernel , it is ok :
    $ rpm2cpio kernel-3.10.0-693.11.1.el7.x86_64.rpm | cpio -idm
    81960 blocs
    $ ls
    boot etc lib

  8. #8
    Join Date
    Oct 2011
    Posts
    1,863

    Re: F27 : unable to install new kernel past 4.14.7

    Files in `/boot` are copied from `/usr` by a scriptlet after installation since they normally install to `/usr`. Initramfs is not installed by the package, but the package installation should trigger its generation.

    What happens if you try to reinstall the kernel?
    Code:
    $ sudo dnf reinstall kernel-core-4.14.18-300.fc27.x86_64

  9. #9
    Join Date
    Feb 2018
    Location
    France
    Posts
    7

    Re: F27 : unable to install new kernel past 4.14.7

    for now , i have copied boot files from another machine
    so the /boot directory look like :
    Code:
    # ll /boot/
    total 92016
    drwxr-xr-x. 4 root root     4096 13 févr. 21:23 1f5f587f7d654e91b3606df99236fcf3
    -rw-r--r--. 1 root root   191934 13 févr. 21:18 config-4.14.18-300.fc27.x86_64
    drwxr-xr-x. 4 root root     4096 16 nov.  13:07 efi
    drwxr-xr-x. 2 root root     4096 24 déc.  13:09 extlinux
    drwx------. 6 root root     4096 13 févr. 21:23 grub2
    -rw-------. 1 root root 54327576  1 janv.  2017 initramfs-0-rescue-1f5f587f7d654e91b3606df99236fcf3.img
    -rw-------. 1 root root 21061533 13 févr. 21:18 initramfs-4.14.18-300.fc27.x86_64.img
    drwxr-xr-x. 3 root root     4096 29 déc.  15:20 loader
    -rw-------. 1 root root  3714422 13 févr. 21:18 System.map-4.14.18-300.fc27.x86_64
    -rwxr-xr-x. 1 root root  6794376  1 janv.  2017 vmlinuz-0-rescue-1f5f587f7d654e91b3606df99236fcf3
    -rwxr-xr-x. 1 root root  8106072 13 févr. 21:18 vmlinuz-4.14.18-300.fc27.x86_64
    I do reinstall (sorry it is in french)
    Code:
    # dnf reinstall kernel-core-4.14.18-300.fc27.x86_64
    Fedora 27 - x86_64 - Updates Hector              45 MB/s |  16 MB     00:00    
    RPM Fusion for Fedora 27 - Free - Updates                              6.1 MB/s | 289 kB     00:00    
    Dernière vérification de l’expiration des métadonnées effectuée il y a 0:00:00 le sam. 17 févr. 2018 17:37:47 CET.
    Dépendances résolues.
    =======================================================================================================
     Paquet                 Architecture      Version                      Dépôt                     Taille
    =======================================================================================================
    Réinstallation de:
     kernel-core            x86_64            4.14.18-300.fc27             updates_hector             23 M
    
    Résumé de la transaction
    =======================================================================================================
    
    Taille totale* : 23 M
    Voulez-vous continuer*? [o/N]*:y
    Téléchargement des paquets*:
    Test de la transaction en cours
    La vérification de la transaction a réussi.
    Lancement de la transaction de test
    Transaction de test réussie.
    Exécution de la transaction
      Préparation           :                                                                          1/1 
      Réinstallation de     : kernel-core-4.14.18-300.fc27.x86_64                                      1/2 
      Exécution du scriptlet: kernel-core-4.14.18-300.fc27.x86_64                                      1/2 
      Exécution du scriptlet: kernel-core-4.14.18-300.fc27.x86_64                                      2/2 
      Suppression de        : kernel-core-4.14.18-300.fc27.x86_64                                      2/2 
      Exécution du scriptlet: kernel-core-4.14.18-300.fc27.x86_64                                      2/2 
      Vérification de       : kernel-core-4.14.18-300.fc27.x86_64                                      1/2 
      Vérification de       : kernel-core-4.14.18-300.fc27.x86_64                                      2/2 
    
    Réinstallé:
      kernel-core.x86_64 4.14.18-300.fc27                                                                  
    
    Terminé*!
    and the only file that changed is the directory
    Code:
    drwxr-xr-x. 4 root root     4096 17 févr. 17:38 1f5f587f7d654e91b3606df99236fcf3
    others files stay from "13 fev"

  10. #10
    Join Date
    Oct 2011
    Posts
    1,863

    Re: F27 : unable to install new kernel past 4.14.7

    Do you have `/bin/kernel-install` and `/sbin/new-kernel-pkg`?

  11. #11
    Join Date
    Feb 2018
    Location
    France
    Posts
    7

    Re: F27 : unable to install new kernel past 4.14.7

    Quote Originally Posted by srakitnican
    Do you have `/bin/kernel-install` and `/sbin/new-kernel-pkg`?
    You are right !
    /sbin/new-kernel-pkg is not there !
    the packahe grubby is not installed or has been removed

    I install grubby-8.40-7.fc27.x86_64.rpm and the new kernel 4.15.3-300 installed correctly

    Problem solved . Thank you

    But three is a problem : grubby must always be mandatory, but it is not the case.

Similar Threads

  1. Replies: 2
    Last Post: 27th August 2017, 10:47 PM
  2. F22 Unable to install nVidia drive via .run (error: unable to load the kernel module)
    By BohdanKornienko in forum Installation, Upgrades and Live Media
    Replies: 20
    Last Post: 24th March 2017, 04:41 PM
  3. unable to connect past gateway - FC6
    By rawlins02 in forum Servers & Networking
    Replies: 1
    Last Post: 16th July 2008, 02:33 PM
  4. Unable to install a upgraded kernel from kernel.org under fedora installation
    By srinivasbakki in forum Installation, Upgrades and Live Media
    Replies: 6
    Last Post: 7th January 2008, 02:11 PM
  5. Replies: 2
    Last Post: 28th February 2006, 06:54 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •