You are not logged in.

#1 2015-09-07 19:38:23

smokey2k
Member
Registered: 2011-09-27
Posts: 4

rEFInd and patched kernels won't boot up

Greetings!

After a proper install, i got a good working system. So i decided to try out some patched kernels, like ck or pf kernels.
Installed them from unofficial repositories (repo-ck, archlinuxcn), mkinitcpio generated and copied to /boot the images without any error, for example linux-pf:

==> Building image from preset: /etc/mkinitcpio.d/linux-pf.preset: 'default'
  -> -k /boot/vmlinuz-linux-pf -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-pf.img
==> Starting build: 4.1.4-pf
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [autodetect]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-pf.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux-pf.preset: 'fallback'
  -> -k /boot/vmlinuz-linux-pf -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-pf-fallback.img -S autodetect
==> Starting build: 4.1.4-pf
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [block]
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
  -> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-pf-fallback.img
==> Image generation successful

So everything went fine, but after reboot, in rEFInd bootloader if i try to boot some of these patched kernels i dropped to recovery shell with an error which indicates the kernel can't find the root partition, keyboard not even working so i can only reset and reboot with a stock arch kernel.
Example for a ck kernel:

:: running early hook [udev]
Warning: /lib/modules/4.1.6-1-ck/modules.devname not found - ignoring
starting version 225
:: running hook [udev]
:: Triggering uevents...
Waiting 10 seconds for device /dev/disk/by-uuid/174ca45f-7d61-4c48-a8e6-a89fefa71053 ...
ERROR: device ´UUID=174ca45f-7d61-4c48-a8e6-a89fefa71053´ not found. Skipping fsck.
ERROR: Unable to find root device ´UUID=174ca45f-7d61-4c48-a8e6-a89fefa71053´.
You are being dropped to a recovery shell
       Type exit to try and continue booting
sh: can't access tty: job control turned off

my system is on a pcie ssd, the root is on ext4 formatted partition, the /boot is on fat32 formatted efi system partition:

   /boot          2048          1050623     512.0 MiB   EF00  
   swap           1050624       17827839    8.0 GiB     8200  
   /              17827840      468860927   215.1 GiB   8300

rEFInd could automatically find the new kernels and initrd-s in their respective place (/boot), so if mkinticpio generate the images i not have to copy the images to boot manually.
....so just stucked here, maybe i have to include something in mkinicpios preset hooks or i don't know...

my system:
kernel: 4.1.6-1-ARCH
motherboard: asus z97-a
cpu: Intel Core i5-4440
hdd: Kingston SHPM228

if anyone have any idea what should i do to fix that please tell me smile it would be appreciated !

Offline

#2 2015-09-09 05:18:36

Spartan-S63
Member
Registered: 2015-09-09
Posts: 2

Re: rEFInd and patched kernels won't boot up

I'm having the same issue. rEFInd finds the kernel but then it fails to mount the root filesystem. I've tried all sorts of things without much luck. I'm not sure what's going on. Hopefully someone else can give us some guidance.

Offline

#3 2015-09-17 18:46:17

smokey2k
Member
Registered: 2011-09-27
Posts: 4

Re: rEFInd and patched kernels won't boot up

i had solved my problem with making a new entry in /boot/EFI/refind/refind.conf

menuentry Linux-ck {
        icon EFI/refind/icons/os_linux.png
        ostype Linux
        loader /vmlinuz-linux-ck
        initrd /initramfs-linux-ck.img
        options "ro root=UUID=174ca45f-7d61-4c48-a8e6-a89fefa71053 elevator=bfq"
}

that's make a new icon in refind boot loader and i can successfully boot up with linux-ck, but the default entry still won't working.

Offline

#4 2015-09-19 20:18:20

Spartan-S63
Member
Registered: 2015-09-09
Posts: 2

Re: rEFInd and patched kernels won't boot up

Alright, awesome. Thanks for the heads up. I'll try this and see if I can get it to work.

Offline

Board footer

Powered by FluxBB