classy-giraffe / easy-arch

Script for boostrapping Arch Linux with BTRFS, snapshots and LUKS encryption (UEFI only).
https://classy-giraffe.github.io/easy-arch
Apache License 2.0
226 stars 49 forks source link

Selecting Linux Hardened leads to GRUB rescue mode #48

Closed 1rch closed 2 years ago

1rch commented 2 years ago

Hello!

Sorry in advance - I have a very Arch-newbie question. (was kind of hoping "easy-arch" would make things easy, heh) After your script finishes installing, a reboot boots into GRUB, where I assume I'm supposed to be loading the kernel with the linux command and initialize other things with initrd, but none of the commands I've been finding from google have worked for me. Can you pretty please tell me how to boot into Arch from GRUB?

There's an active discussion on the Arch subreddit about how the official Arch installation guide could be more user friendly. Seeing how your script might be found by other newbies, maybe it would help to add basic instructions for using GRUB into this repo's README? I'm aware this repo isn't exactly aimed at beginners, but helping people get started with BTRFS and ZRAM is probably a good thing.

Hopefully I haven't done something completely wrong.

set root=(hd0,gpt1)
linux /vmlinuz-linux
boot

Gets me:

error: no suitable video mode found.
Booting in blind mode

But it doesn't go anywhere from there. I'm guessing I still need to figure out the initrd bit.

EDIT: Just noticed I'm not the only one not enjoying GRUB. Did you give up on rEFInd?

classy-giraffe commented 2 years ago

So, technically speaking you should be able to reboot into grub perfectly with no issues and find the arch entry. Are you that didn't happen? Cause you really aren't supposed to start the kernel manually by hand.

1rch commented 2 years ago

Thank you for your reply. Not having to start it by hand is a relief and a new problem. I just realized that if I boot into the SSD (and not GRUB), it boots into GRUB rescue mode with:

error: unknown filesystem.
Entering rescue mode...
grub rescue> _

Could one of these errors during installation be causing this?

warning: directory permissions differ on /mnt/root/
filesystem: 755  package: 750
error: command failed to execute correctly

(EDIT) Important note: The GRUB rescue problem seems to be exclusive to selecting linux-hardened. When I select standard linux, it seems to work fine.

1rch commented 2 years ago

I guess the Zen kernel is what I (and most other people) really want, and selecting that works fine too, so this problem is more or less solved for me. Leaving the issue open though, in case someone else has problems with Hardened.

classy-giraffe commented 2 years ago

The permission mismatch is an issue but it shouldn't prevent you from booting at all, that's kinda weird. I suppose something went wrong while setting up grub. Do you mind contact me on discord? (@thomas.#9999)

classy-giraffe commented 2 years ago

Anyway I just spin up a VM, executed this script selecting the hardened kernel. Everything's working here, could be a you-problem (something related to your hardware). Even in such case, I'd like to help you out, if you don't mind of course. :)

1rch commented 2 years ago

Oh, I didn't think it could be hardware related. I'll close the issue then, anyone having problems can see the closed issue too. I'd be very grateful if you could help me look into it. Sent you a friend request on Discord (I'm Jasper). Let me know anything you might need for troubleshooting.