clearlinux / distribution

Placeholder repository to allow filing of general bugs/issues/etc against the Clear Linux OS for Intel Architecture linux distribution
522 stars 29 forks source link

(MAC OS) Clear Linux fails to find and open bootloaderx64.efi - Live Image #441

Open tomas-ramos21 opened 5 years ago

tomas-ramos21 commented 5 years ago

Describe the bug I'm currently trying to use Clear Linux live image. However, while booting I get message saying the boot-loader wasn't found. Which doesn't permit me to try the system out. I will attach a image for reference.

I'm using a MacBook Pro mid 2017 without touchbar. Which has a partition with OS X and another with Ubuntu. Moreover I'm using rEFInd upon starting the laptop to select the OS to use.

While creating the USB pen with the live image, I followed the instructions provided in the website as well as trying the ".sh" script provided to ensure compatibility. The script provided the message "SUCESS" for all the parameters confirming my machine should be compatible with the system.

To Reproduce Steps to reproduce the behavior:

  1. Install Ubuntu on MacBook Pro 2017
  2. Create Live USB in OS X
  3. Install rEFInd
  4. Boot from Clear Linux live image pen

Expected behavior Clear Linux should start, allowing the user to login into the system.

Screenshots img_2057

Environment:

Additional context Although Macbook Pro 2017 is known to have some issues with the linux kernel, these are mostly related to device drivers (e.g. Keyboard) and not with the system installation. However, I'm unaware if it could have any influence on Clear Linux's boot-loader.

tomas-ramos21 commented 5 years ago

I have tried installing the Clear Linux* on my Macbook as first OS. Meaning I removed the previous installation of OS X and Ubuntu. However the error still persists.

When trying to boot with the installer image, by selecting the installation option from the menu, the computer's screen just turns black. I have also tried previous versions of the both ".img" and ".iso" images. No success as well when using previous versions.

One small but maybe important detail is that the computer only has USB-C entries.

nesiusra commented 5 years ago

@bryteise @ahkok

Adding some people here. I suppose first we should verify if this is MacBook/rEFInd specific or a more general problem with the live image.

bryteise commented 5 years ago

Hrm that error message looks odd since it has the EFI\namespace component duplicated. Are the options for being used correct? I really haven't touched this tooling though so I'm not sure what the cause is. It looks very likely to be something that is rEFInd specific.

tomas-ramos21 commented 5 years ago

@bryteise @ahkok @ikeyd I have contacted the developer of rEFInd tool, since he is obviously much more of an expert in this case than I will ever be. He has been very helpful providing his opinion in less then 4 hours. I will resume it for you.

rEFInd Creator Analysis

Suggestions

Notes

Suggestions Tried & Results

I have yet to try some of the other suggestions. I will post them here once I have tried them out.

@bryteise it may be worth to mention that I have also tried to launch Clear Linux without rEFInd and it still doesn't work. I tried using systemd, which had the same "Black Screen" result but no message. Nonetheless, if you are referring to the load options please refer to the image below. The boot also hangs at this point and nothing happens. img_6042

nesiusra commented 5 years ago

Thank you so much for the legwork you're doing here. Please keep us posted.

bryteise commented 5 years ago

Could you edit the options and remove the quiet option (sorry it is likely in the middle of that string) and see if you get any further messages?

Note Clear Linux puts shim (/efi/org.clearlinux/loaderx64.efi) as the /efi/boot/bootx64.efi application by default and that loads systemd-boot (/efi/org.clearlinux/bootloaderx64.efi) which is our bootloader. In theory you should just be able to boot the kernel directly though too (not sure how that is done via rEFInd).

Maybe I'll just steal @nesiusra's macbook and try and get it to boot the live image tomorrow lol.

tpleavitt commented 5 years ago

@bktan8 , please take a look

gilsonolegario commented 5 years ago

I successfully booted ClearLinux with rEFInd with the following entry:

# ClearLinux entry
menuentry "ClearLinux OS" {
    icon \EFI\boot\icons-hidpi\clearOS.png
    loader \EFI\systemd\systemd-bootx64.efi
    options root=PARTUUID=41ea1729-9588-4d89-a8a1-9e24e5f7468b console=tty0 console=ttyS0,115200n8 init=/usr/bin/initra-desktop  initcall_debug tsc=reliable no_timer_check noreplace-smp kvm-intel.nested=1 rootfstype=ext4,btrfs,xfs intel_iommu=igfx_off cryptomgr.notests rcupdate.rcu_expedited=1 rcu_nocbs=0-64 rw module.sig_unenforce
    graphics on
}