Builds a minimal Fedora image to run on Apple M1/M2 systems
Make sure to update your macOS to version 12.3 or later, then just pull up a Terminal in macOS and paste in this command:
curl https://leifliddy.com/fedora.sh | sh
dnf install mkosi arch-install-scripts systemd-container zip
qemu-user-static
is also needed if building the image on anon-aarch64
system- Until this PR is merged into the next
mkosi
release https://github.com/systemd/mkosi/pull/1264/commits
install mksoi from main:
python3 -m pip install --user git+https://github.com/systemd/mkosi.git
- The root password is fedora
- On the first boot the
asahi-firstboot.service
will run, selinux will be set to enforcing and the system will reboot. - The Asahi Linux-related RPM's (and Source RPM's) used in this image can be found here: https://leifliddy.com/asahi-linux/37/
All RPM's signed are signed by a GPG key.
The repo config can be found here: https://leifliddy.com/asahi-linux/asahi-linux.repo - The Fedora kernel config used is nearly identical to the kernel config used by the Asahi Linux project:
- Only a few Fedora-specific modifications were made https://github.com/AsahiLinux/PKGBUILDs/blob/main/linux-asahi/config
NetworkManager
is enabled by default.
To connect to a wireless network, use the following sytanx:
nmcli dev wifi connect network-ssid
An actual example:
nmcli dev wifi connect blacknet-ac password supersecretpassword
Bring up a Terminal in macOS and run the following Asahi Linux script:
sudo curl -L https://alx.sh/wipe-linux | sh
You should definitely understand what this script does before running it. You can find more info here:
https://github.com/AsahiLinux/docs/wiki/Partitioning-cheatsheet
Once Linux is installed on an M1 system, you can then boot a compatible usb drive via u-boot
.
This project will create a bootable USB drive for M1 systems.
https://github.com/leifliddy/asahi-fedora-usb
The light
command can be used to adjust the screen and keyboard backlight.
light -s sysfs/leds/kbd_backlight -S 10
light -s sysfs/backlight/apple-panel-bl -S 50
To upgrade from F36 --> F37 leifliddy#11
- mesa-asahi libraries
If you have mesa version
1:23.0.0_pre20221207
or1:23.0.0_pre20221209
installed
please see the following: leifliddy#8 (comment)
Info on the official Fedora effort to support Apple silicon: https://fedoraproject.org/wiki/SIGs/Asahi