ading2210 / shimboot

Boot a desktop Linux distribution from a Chrome OS RMA shim.
https://shimboot.ading.dev
GNU General Public License v3.0
153 stars 47 forks source link

Unable to boot Alpine Linux #63

Open SniverDaBest opened 2 months ago

SniverDaBest commented 2 months ago

Describe the bug I successfully built an Alpine Linux shim, but it goes to a black screen, and does nothing.

To Reproduce Steps to reproduce the behavior:

  1. Go to shimboot
  2. Press 3 to go to Alpine
  3. Black screen after a little message

Expected behavior Alpine Linux should work, as it's supported in the build files.

Screenshots / Photos If applicable, add screenshots or photos to help explain your problem.

If you are reporting an issue with the build process, please run the scripts in debug mode by putting DEBUG=1 before the build commmand, like sudo DEBUG=1 ./build_complete.sh.

Target Chrome OS Device (please complete the following information):

Build Device (please complete the following information):

Additional context Alpine loads openrc, and does some stuff before it goes to a black screen. Also, yes, I have tried waiting.

ading2210 commented 2 months ago

I think I know why this bug occurs. To fix the systemd boot messages on Debian, the bootloader bind mounts /dev/pts/0 to /dev/console. However, this has to be unmounted later so that xorg can start, which the Alpine rootfs does not do.

To work around this for now, you can remove these lines in /bin/bootstrap.sh in the bootloader. https://github.com/ading2210/shimboot/blob/0cce802d4a16c7048d2383a83428834eefda72f5/bootloader/bin/bootstrap.sh#L298-L303

SniverDaBest commented 2 months ago

That still didn't work sadly. Still gets stuck. I have a feeling it might be the login manager or something. It also could be openrc.

funkymokey commented 2 days ago

Is there an update on this?

SniverDaBest commented 12 hours ago

Sadly no. My friend uses alpine on his octopus chromebook, and it seems fine. Still doesn't work on my dedede...