• \[Solved\] New kernels not including initramfs in grub


    Hey everyone, i’m having a slight issue. I wanted to downgrade my kernel because my laptop suffers from a regression in the backlight with kernel 3.14. I installed first the linux-lts then i tried linux-ck 3.13 and in both cases I got a kernel panic. In fact i’ve gotten a kernel panic from every kernel besides the one that antergos installed by default. Is there something i’m missing? I’m installing the kernel, then updating grub, reboot and panic. I’m not 100% what logs might help so whatever you may need i’ll provide.

    Ok I got it booting, after installing and updating grub the initramfs wasn’t included. So the question now becomes how do i tell it to use the new initramfs? I added the line manually and it’s working but regenerating grub removes the line again.

  • Hey everyone, i’m having a slight issue. I wanted to downgrade my kernel because my laptop suffers from a regression in the backlight with kernel 3.14. I installed first the linux-lts then i tried linux-ck 3.13 and in both cases I got a kernel panic. In fact i’ve gotten a kernel panic from every kernel besides the one that antergos installed by default. Is there something i’m missing? I’m installing the kernel, then updating grub, reboot and panic. I’m not 100% what logs might help so whatever you may need i’ll provide.

    Ok I got it booting, after installing and updating grub the initramfs wasn’t included. So the question now becomes how do i tell it to use the new initramfs? I added the line manually and it’s working but regenerating grub removes the line again.

  • Hi,

    Please verify that you have this file in /etc/grub.d.:

    [https://github.com/Antergos/Cnchi/raw/master/scripts/10_antergos][0]">[https://github.com/Antergos/Cnchi/raw/m][1] … 0_antergos

    If necessary add the file and make it executable.

    Cheers!

    [0]: <a href=
    [1]: https://github.com/Antergos/Cnchi/raw/m

  • 13:00:39 [[email protected] ~]$ ls /etc/grub.d/  
    00\_header 10\_linux 30\_os-prober 41\_custom README  
    10\_antergos 20\_linux\_xen 40\_custom 60\_memtest86+  
    
    
    13:00:46 [[email protected] ~]$ ls -l /etc/grub.d/10\_antergos   
    --wxrw--wt 1 root root 11070 May 25 15:31 /etc/grub.d/10\_antergos
    

    Looks fine to me

  • I don’t think the permissions are correct

    Cheers!

  • set the new permissions, ran grub-mkconfig and checked the file, initramfs still isn’t showing.

    13:53:15 [[email protected] ~]$ sudo chmod a+x /etc/grub.d/10\_antergos  
    13:53:20 [[email protected] ~]$ ls -l /etc/grub.d/10\_antergos   
    --wxrwx-wt 1 root root 11070 May 25 15:31 /etc/grub.d/10\_antergos  
    13:53:29 [[email protected] ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg  
    Generating grub configuration file ...  
    Found theme: /boot/grub/themes/Antergos-Default/theme.txt  
    Found linux image: /boot/vmlinuz-linux-ck  
    Found linux image: /boot/vmlinuz-linux  
    Found initrd image: /boot/initramfs-linux.img  
    /dev/cdrom: open failed: No medium found  
    No volume groups found  
    done
    

    the only initramfs it’s finding is for the default kernel

  • Okay, it looks like there have been some changes to the grub scripts that we will need to port into 10_antergos. Try the following and let me know the resulting grub menu entries.

    sudo chmod a-x /etc/grub.d/10\_antergos  
    sudo chmod a+x /etc/grub.d/10\_linux  
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    

    Cheers!

  • 15:17:12 [[email protected] ~]$ sudo chmod a-x /etc/grub.d/10\_antergos  
    [sudo] password for lowendgeek:   
    15:17:21 [[email protected] ~]$ sudo chmod a+x /etc/grub.d/10\_linux  
    15:17:27 [[email protected] ~]$ sudo grub-mkconfig -o /boot/grub/grub.cfg  
    Generating grub configuration file ...  
    Found theme: /boot/grub/themes/Antergos-Default/theme.txt  
    Found linux image: /boot/vmlinuz-linux-ck  
    Found initrd image: /boot/initramfs-linux-ck.img  
    Found fallback initramfs image: /boot/initramfs-linux-ck-fallback.img  
    Found linux image: /boot/vmlinuz-linux  
    Found initrd image: /boot/initramfs-linux.img  
    Found fallback initramfs image: /boot/initramfs-linux-fallback.img  
    No volume groups found  
    done
    

    Alright that worked, thanks for the help

  • No problem…if you dont mind please post the resulting menu entries from /boot/grub/grub.cfg THANKS

    Best Regards,

  • /boot/grub/grub.cfg

    \#  
    \# DO NOT EDIT THIS FILE  
    \#  
    \# It is automatically generated by grub-mkconfig using templates  
    \# from /etc/grub.d and settings from /etc/default/grub  
    \#  
      
    \#\#\# BEGIN /etc/grub.d/00\_header \#\#\#  
    insmod part\_gpt  
    insmod part\_msdos  
    if [ -s $prefix/grubenv ]; then  
    load\_env  
    fi  
    if [ "${next\_entry}" ] ; then  
    set default="${next\_entry}"  
    set next\_entry=  
    save\_env next\_entry  
    set boot\_once=true  
    else  
    set default="0"  
    fi  
      
    if [ x"${feature\_menuentry\_id}" = xy ]; then  
    menuentry\_id\_option="--id"  
    else  
    menuentry\_id\_option=""  
    fi  
      
    export menuentry\_id\_option  
      
    if [ "${prev\_saved\_entry}" ]; then  
    set saved\_entry="${prev\_saved\_entry}"  
    save\_env saved\_entry  
    set prev\_saved\_entry=  
    save\_env prev\_saved\_entry  
    set boot\_once=true  
    fi  
      
    function savedefault {  
    if [ -z "${boot\_once}" ]; then  
    saved\_entry="${chosen}"  
    save\_env saved\_entry  
    fi  
    }  
      
    function load\_video {  
    if [ x$feature\_all\_video\_module = xy ]; then  
    insmod all\_video  
    else  
    insmod efi\_gop  
    insmod efi\_uga  
    insmod ieee1275\_fb  
    insmod vbe  
    insmod vga  
    insmod video\_bochs  
    insmod video\_cirrus  
    fi  
    }  
      
    if [ x$feature\_default\_font\_path = xy ] ; then  
    font=unicode  
    else  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos2'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 783c2dc7-06d7-48a1-a294-60fec59cf9e8  
    else  
    search --no-floppy --fs-uuid --set=root 783c2dc7-06d7-48a1-a294-60fec59cf9e8  
    fi  
    font="/usr/share/grub/unicode.pf2"  
    fi  
      
    if loadfont $font ; then  
    set gfxmode=auto  
    load\_video  
    insmod gfxterm  
    set locale\_dir=$prefix/locale  
    set lang=en\_US  
    insmod gettext  
    fi  
    terminal\_input console  
    terminal\_output gfxterm  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 15651d08-202a-4d18-8c3f-0253c350ffbe  
    else  
    search --no-floppy --fs-uuid --set=root 15651d08-202a-4d18-8c3f-0253c350ffbe  
    fi  
    insmod gfxmenu  
    loadfont ($root)/grub/themes/Antergos-Default/ascii.pf2  
    loadfont ($root)/grub/themes/Antergos-Default/rlwy14.pf2  
    loadfont ($root)/grub/themes/Antergos-Default/rlwy16.pf2  
    insmod png  
    set theme=($root)/grub/themes/Antergos-Default/theme.txt  
    export theme  
    if [ x$feature\_timeout\_style = xy ] ; then  
    set timeout\_style=menu  
    set timeout=5  
    \# Fallback normal timeout code in case the timeout\_style feature is  
    \# unavailable.  
    else  
    set timeout=5  
    fi  
    \#\#\# END /etc/grub.d/00\_header \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/10\_linux \#\#\#  
    menuentry 'Antergos Linux' --class antergos --class gnu-linux --class gnu --class os $menuentry\_id\_option 'gnulinux-simple-783c2dc7-06d7-48a1-a294-60fec59cf9e8' {  
    load\_video  
    set gfxpayload=keep  
    insmod gzio  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 15651d08-202a-4d18-8c3f-0253c350ffbe  
    else  
    search --no-floppy --fs-uuid --set=root 15651d08-202a-4d18-8c3f-0253c350ffbe  
    fi  
    echo 'Loading Linux linux-ck ...'  
    linux /vmlinuz-linux-ck root=UUID=783c2dc7-06d7-48a1-a294-60fec59cf9e8 rw resume=UUID=96ae3fd0-d650-40d7-81cf-6d4184973fb5 quiet  
    echo 'Loading initial ramdisk ...'  
    initrd /initramfs-linux-ck.img  
    }  
    submenu 'Advanced options for Antergos Linux' $menuentry\_id\_option 'gnulinux-advanced-783c2dc7-06d7-48a1-a294-60fec59cf9e8' {  
    menuentry 'Antergos Linux, with Linux linux-ck' --class antergos --class gnu-linux --class gnu --class os $menuentry\_id\_option 'gnulinux-linux-ck-advanced-783c2dc7-06d7-48a1-a294-60fec59cf9e8' {  
    load\_video  
    set gfxpayload=keep  
    insmod gzio  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 15651d08-202a-4d18-8c3f-0253c350ffbe  
    else  
    search --no-floppy --fs-uuid --set=root 15651d08-202a-4d18-8c3f-0253c350ffbe  
    fi  
    echo 'Loading Linux linux-ck ...'  
    linux /vmlinuz-linux-ck root=UUID=783c2dc7-06d7-48a1-a294-60fec59cf9e8 rw resume=UUID=96ae3fd0-d650-40d7-81cf-6d4184973fb5 quiet  
    echo 'Loading initial ramdisk ...'  
    initrd /initramfs-linux-ck.img  
    }  
    menuentry 'Antergos Linux, with Linux linux-ck (fallback initramfs)' --class antergos --class gnu-linux --class gnu --class os $menuentry\_id\_option 'gnulinux-linux-ck-fallback-783c2dc7-06d7-48a1-a294-60fec59cf9e8' {  
    load\_video  
    set gfxpayload=keep  
    insmod gzio  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 15651d08-202a-4d18-8c3f-0253c350ffbe  
    else  
    search --no-floppy --fs-uuid --set=root 15651d08-202a-4d18-8c3f-0253c350ffbe  
    fi  
    echo 'Loading Linux linux-ck ...'  
    linux /vmlinuz-linux-ck root=UUID=783c2dc7-06d7-48a1-a294-60fec59cf9e8 rw resume=UUID=96ae3fd0-d650-40d7-81cf-6d4184973fb5 quiet  
    echo 'Loading initial ramdisk ...'  
    initrd /initramfs-linux-ck-fallback.img  
    }  
    menuentry 'Antergos Linux, with Linux linux' --class antergos --class gnu-linux --class gnu --class os $menuentry\_id\_option 'gnulinux-linux-advanced-783c2dc7-06d7-48a1-a294-60fec59cf9e8' {  
    load\_video  
    set gfxpayload=keep  
    insmod gzio  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 15651d08-202a-4d18-8c3f-0253c350ffbe  
    else  
    search --no-floppy --fs-uuid --set=root 15651d08-202a-4d18-8c3f-0253c350ffbe  
    fi  
    echo 'Loading Linux linux ...'  
    linux /vmlinuz-linux root=UUID=783c2dc7-06d7-48a1-a294-60fec59cf9e8 rw resume=UUID=96ae3fd0-d650-40d7-81cf-6d4184973fb5 quiet  
    echo 'Loading initial ramdisk ...'  
    initrd /initramfs-linux.img  
    }  
    menuentry 'Antergos Linux, with Linux linux (fallback initramfs)' --class antergos --class gnu-linux --class gnu --class os $menuentry\_id\_option 'gnulinux-linux-fallback-783c2dc7-06d7-48a1-a294-60fec59cf9e8' {  
    load\_video  
    set gfxpayload=keep  
    insmod gzio  
    insmod part\_msdos   
    insmod ext2  
    set root='hd0,msdos1'  
    if [ x$feature\_platform\_search\_hint = xy ]; then  
    search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 15651d08-202a-4d18-8c3f-0253c350ffbe  
    else  
    search --no-floppy --fs-uuid --set=root 15651d08-202a-4d18-8c3f-0253c350ffbe  
    fi  
    echo 'Loading Linux linux ...'  
    linux /vmlinuz-linux root=UUID=783c2dc7-06d7-48a1-a294-60fec59cf9e8 rw resume=UUID=96ae3fd0-d650-40d7-81cf-6d4184973fb5 quiet  
    echo 'Loading initial ramdisk ...'  
    initrd /initramfs-linux-fallback.img  
    }  
    }  
      
    \#\#\# END /etc/grub.d/10\_linux \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/20\_linux\_xen \#\#\#  
    \#\#\# END /etc/grub.d/20\_linux\_xen \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/30\_os-prober \#\#\#  
    \#\#\# END /etc/grub.d/30\_os-prober \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/40\_custom \#\#\#  
    \# 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.  
    \#\#\# END /etc/grub.d/40\_custom \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/41\_custom \#\#\#  
    if [ -f ${config\_directory}/custom.cfg ]; then  
    source ${config\_directory}/custom.cfg  
    elif [ -z "${config\_directory}" -a -f $prefix/custom.cfg ]; then  
    source $prefix/custom.cfg;  
    fi  
    \#\#\# END /etc/grub.d/41\_custom \#\#\#  
      
    \#\#\# BEGIN /etc/grub.d/60\_memtest86+ \#\#\#  
    \#\#\# END /etc/grub.d/60\_memtest86+ \#\#\#
    
Posts 11Views 2012
Log in to reply