User talk:Jared/Gentoo On An M1 Mac

From Gentoo Wiki
Jump to:navigation Jump to:search

Notes for Fedora

  1. Use Minimal Image
  2. Use `nmcli` to setup Wi-Fi network
  3. `sudo yum upgrade` to upgrade the system.
  4. Reboot.
  5. `sudo yum install git wget`


Label is changed to `fedora` for root partition. When mounting had to run `modprobe dm_crypt`. When mount boot, had to run `modprobe vfat`.

install.sh for gentoosupport doesn't work right now because `/proc/config.gz` isn't a thing. Not sure how to proceed here right now. Opted to skip known good kernel step and use my dist-kernel instead (jaredallard/Asahi-overlay step) Can't use KERNVER from `make kernelversion`. Infer from `/lib/modules`

We do need to put the rd options for crypt boot into `/etc/default/grub`

Some suggestions

Don't want to just edit your article for you, but I've been following this to get set up myself, and I've run into a couple issues I had to solve so far...

  1. ALARM and expert mode are hidden by default now. This is easy to fix: `curl ... | EXPERT=1 sh`.
  2. The initramfs doesn't work right if you don't have the `cryptsetup` USE flag on systemd. I'll *confirm* this in another comment later, since I have to redo the entire process right now (for reasons unrelated to you, I may have totally broken everything), but I couldn't get my volume unlocking during boot until I added the `cryptsetup` use flag globally. I think it's just required on systemd, and that's what I'm going to try now, and if it works I'll let you know... if it doesn't work I'll, uh, figure out what the heck I did to get it working last time, I guess.

Other than that, and other than my own errors, this was a pretty good guide and I'm looking forward to doing it again :) demize (talk) 15:43, 23 March 2024 (UTC)

Ah, one other tweak to get it booting right. Pretty simple: just need to edit `/etc/default/grub` to add `GRUB_DEVICE_UUID=<BTRFS UUID>`, which will make it generate the same root in the command line we're putting in dracut's config. Unfortunately there's no way to just... disable generating a command line entirely, that would be easier and more effective. 18:21, 23 March 2024 (UTC)