Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transitioning to ----> Asahi Fedora Remix #25

Open
leifliddy opened this issue Mar 25, 2023 · 25 comments
Open

Transitioning to ----> Asahi Fedora Remix #25

leifliddy opened this issue Mar 25, 2023 · 25 comments

Comments

@leifliddy
Copy link
Owner

leifliddy commented Mar 25, 2023

Here's a quick and dirty guide on how to transition from this project to ---> Asahi Fedora Remix
https://www.asahi-fedora-remix.org/

Note: You must be running Fedora 37 in order for this to work.

  1. install the fedora-remix-branding repo
rpm --import https://download.copr.fedorainfracloud.org/results/@asahi/fedora-remix-branding/pubkey.gpg
curl https://pagure.io/fedora-asahi/asahi-repos/raw/main/f/group_asahi-fedora-remix-branding.repo --output /etc/yum.repos.d/group_asahi-fedora-remix-branding.repo
  1. remove this project's repo
rm /etc/yum.repos.d/asahi-linux.repo
  1. install the Asahi Fedora Remix common and edge repos
dnf install asahi-repos-common asahi-repos-edge
  1. Install the Asahi Fedora Remix mesa rpms

because the rpms in the Asahi Fedora Remix repo have a slightly different versioning scheme
ie they use a tilde in the version mesa-libglapi-23.1.0~asahipre20230321-1.fc37.aarch64
then we need to "downgrade" in order to switch over to the remix version

dnf downgrade $(dnf list installed | grep mesa | grep pre2023 | awk '{print $1}')
  1. keep fedora logos (optional)
    if you'd rather keep fedora-logos (vs replacing them with the asahi-fedora-remix-logos variant)
    then I would add this exclude statement to that repo config.
echo 'exclude=asahi-fedora-remix-logos asahi-fedora-remix-release*' >> /etc/yum.repos.d/group_asahi-fedora-remix-branding.repo
  1. dnf upgrade
dnf upgrade
  1. Switch packages over to the Asahi Fedora Remix versions

run the following command to see which installed packages originated from my repo: @asahi-linux

[root@fedora ~]# dnf list installed | grep @asahi-linux
asahi-firstboot.noarch                               20230128-1.fc37                     @asahi-linux                                                     
kernel.aarch64                                       6.2.0-100.asahi11.1.fc37            @asahi-linux
...
m1n1.aarch64                                         1.2.6-1.fc37                        @asahi-linux                                                     
m1n1-tools.noarch                                    1.2.6-1.fc37                        @asahi-linux                                                     
uboot-images-armv8.noarch                            2023.01-3.fc37                      @asahi-linux  

You can remove the asahi-firstboot package if you want (it was only needed for the first boot)
I would recommend reinstalling anything other then the asahi-firstboot and kernel packages.
That way, are using the official versions of those packages

examples

[root@fedora ~]# dnf reinstall uboot-images-armv8
Last metadata expiration check: 0:22:24 ago on Sat Mar 25 15:04:28 2023.
Dependencies resolved.
======================================================================================================================
 Package                 Arch        Version             Repository                                              Size
======================================================================================================================
Reinstalling:
 uboot-images-armv8      noarch      2023.01-3.fc37      copr:copr.fedorainfracloud.org:group_asahi:u-boot       15 M

Transaction Summary
======================================================================================================================
[root@fedora ~]# dnf reinstall m1n1
Last metadata expiration check: 0:23:01 ago on Sat Mar 25 15:04:28 2023.
Dependencies resolved.
======================================================================================================================
 Package                 Architecture               Version                          Repository                  Size
======================================================================================================================
Reinstalling:
 m1n1                    aarch64                    1.2.6-1.fc37                     updates                    150 k

Transaction Summary
======================================================================================================================
  1. Fedora 38

From here you should be able to transition to F38 (if you want to)

dnf install dnf-plugin-system-upgrade
dnf system-upgrade download --releasever=38

10 . Remove exclude statements
Early versions of my build used these exclude statements:
If you see this line:

exclude=kernel kernel-core kernel-devel kernel-headers kernel-modules kernel-modules-extra

in these files:

/etc/yum.repos.d/fedora.repo
/etc/yum.repos.d/fedora-updates.repo

Then please remove them. These exclude statement are no longer needed as priority is used now.

Please let me know if you run into any issues.

@SamilKaraduman
Copy link

sudo rpm --import https://download.copr.fedorainfracloud.org/results/@asahi/fedora-remix-branding/pubkey.gpg
[samilk@fedora-asahi ~]$ https://pagure.io/fedora-asahi/asahi-repos/raw/main/f/group_asahi-fedora-remix-branding.repo --output /etc/yum.repos.d/group_asahi-fedora-remix-branding.repo
bash: https://pagure.io/fedora-asahi/asahi-repos/raw/main/f/group_asahi-fedora-remix-branding.repo: No such file or directory

Apparently there is no file or directory, making this not possible for me.

@leifliddy
Copy link
Owner Author

leifliddy commented Mar 25, 2023

Ahhh, sorry forgot the curl part of that command. Ok, typo has been corrected.

Repository owner deleted a comment from sarcastillo Mar 27, 2023
@systemauthd
Copy link

After installing asahi-fedora-remix-release, my system is reporting that it's on rawhide instead of f38

~ python3 -c 'import dnf, pprint; db = dnf.dnf.Base(); pprint.pprint(db.conf.substitutions,width=1)'
{'arch': 'aarch64',
 'basearch': 'aarch64',
 'releasever': 'rawhide'}

Need to execute dnf commands with --releasever=f38 in order to prevent f39/rawhide RPMs from being installed.

@tudorbarascu
Copy link

Hmm. I followed the exact same steps and the kernel 6.2.8-450.asahi.fc37 gets installed but it doesn't boot. I need to check the second 6.2.0-100.asahi11.1.fc37.aarch64 in order to boot.

When I try booting the 6.2.8 kernel it outputs the following error:

error ../../grub-core/loader/arm64/linux.c:59:invalid magic number
errorv../../grub-core/loader/arm64/linux.c:283:you need to load the kernel first.
Press any key to continue.

@leifliddy
Copy link
Owner Author

leifliddy commented Mar 27, 2023

@systemauthd damn, yeah it looks like those asahi-fedora-remix-release rpms are not ready yet.
Here's what you can do for now if you want.

  1. edit /etc/yum.repos.d/group_asahi-fedora-remix-branding.repo
    and append this
    exclude=asahi-fedora-remix-logos asahi-fedora-remix-release*

  2. remove the asahi-remix-release and logo packages

rpm -e --nodeps asahi-fedora-remix-logos asahi-fedora-remix-release asahi-fedora-remix-release-common asahi-fedora-remix-release-identity-basic
  1. Install the fedora-release and logo rpms.
    Substitute releasever appropriately.
dnf install --releasever=38 fedora-release fedora-release-common fedora-release-identity-basic 

Let me know if that works for you.

@leifliddy
Copy link
Owner Author

@tudorbarascu I'm not sure why that kernel didn't install right.
Can you try reinstalling the kernel?

dnf reinstall $(rpm -qa | grep kernel | grep 6.2.8)

If it still doesn't boot, can you post this output?

rpm -qa | grep kernel | grep 6.2.8
rpm -ql kernel-core-6.2.8-450.asahi.fc37.aarch64 | grep boot | grep -v dtb | xargs ls -lh
find /boot/loader/ | grep 6.2.8-450 | xargs cat

@leifliddy
Copy link
Owner Author

leifliddy commented Mar 27, 2023

An update was just pushed out that resolves that rawhide issue

[root@fedora ~]# rpm -qf /etc/redhat-release 
asahi-fedora-remix-release-common-38-0.1.noarch

[root@fedora38 ~]# cat /etc/redhat-release 
Fedora release 38 (Thirty Eight)

@systemauthd
Copy link

An update was just pushed out that resolves that rawhide issue

Yup, working fine now. Had to do a reinstall of asahi-fedora-remix-release-common-38-0.1.noarch though because the build wasn't incremented... just a heads up for anyone else experiencing this issue.

@tudorbarascu
Copy link

It doesn't boot. When I reinstalled I had the following warning:

Running scriptlet: kernel-modules-core-6.2.8-450.asahi.fc37.aarch64                                                                               14/14 
depmod: WARNING: could not open modules.order at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory

The output of the commands you gave:

kernel-modules-core-6.2.8-450.asahi.fc37.aarch64
kernel-core-6.2.8-450.asahi.fc37.aarch64
kernel-modules-6.2.8-450.asahi.fc37.aarch64
kernel-6.2.8-450.asahi.fc37.aarch64
kernel-modules-extra-6.2.8-450.asahi.fc37.aarch64
kernel-modules-internal-6.2.8-450.asahi.fc37.aarch64
kernel-headers-6.2.8-450.asahi.fc37.aarch64
-rw-r--r--. 1 root root 282K Mar 25 21:42 /boot/config-6.2.8-450.asahi.fc37.aarch64
-rw-------. 1 root root  31M Mar 28 09:26 /boot/initramfs-6.2.8-450.asahi.fc37.aarch64.img
lrwxrwxrwx. 1 root root   52 Mar 28 09:25 /boot/symvers-6.2.8-450.asahi.fc37.aarch64.gz -> /lib/modules/6.2.8-450.asahi.fc37.aarch64/symvers.gz
-rw-------. 1 root root 7.2M Mar 25 21:42 /boot/System.map-6.2.8-450.asahi.fc37.aarch64
-rwxr-xr-x. 1 root root  16M Mar 25 21:44 /boot/vmlinuz-6.2.8-450.asahi.fc37.aarch64
-rw-r--r--. 1 root root  167 Mar 25 21:38 /boot/.vmlinuz-6.2.8-450.asahi.fc37.aarch64.hmac
title Fedora Linux (6.2.8-450.asahi.fc37.aarch64) 37 (Thirty Seven)
version 6.2.8-450.asahi.fc37.aarch64
linux /boot/vmlinuz-6.2.8-450.asahi.fc37.aarch64
initrd /boot/initramfs-6.2.8-450.asahi.fc37.aarch64.img
options root=UUID=d1aff207-9514-49cf-8d4b-95a3851a2550 ro rootflags=subvol=root hid_apple.swap_fn_leftctrl=1
grub_users $grub_users
grub_arg --unrestricted
grub_class fedora

@leifliddy
Copy link
Owner Author

leifliddy commented Mar 28, 2023

@tudorbarascu
Can post the output from this cmd?

rpm -ql kernel-modules-core-6.2.8-450.asahi.fc37.aarch64 | grep -E 'modules.order|modules.builtin' | xargs ls -la

Does this dir contain 17 modules files?

[root@fedora ~]# ll /lib/modules/6.2.8-450.asahi.fc37.aarch64 | grep modules
-rw-r--r--. 1 root root  1390649 Mar 27 21:46 modules.alias
-rw-r--r--. 1 root root  1379811 Mar 27 21:46 modules.alias.bin
-rw-r--r--. 1 root root      902 Mar 25 01:00 modules.block
-rw-r--r--. 1 root root    20881 Mar 25 01:00 modules.builtin
-rw-r--r--. 1 root root    17255 Mar 27 21:46 modules.builtin.alias.bin
-rw-r--r--. 1 root root    25563 Mar 27 21:46 modules.builtin.bin
-rw-r--r--. 1 root root   130045 Mar 25 01:00 modules.builtin.modinfo
...

Do you also see that same scriplet error if you manually download + install that kernel?

wget https://download.copr.fedorainfracloud.org/results/@asahi/kernel-edge/fedora-37-aarch64/05708284-kernel/kernel-6.2.8-450.asahi.fc37.aarch64.rpm
wget https://download.copr.fedorainfracloud.org/results/@asahi/kernel-edge/fedora-37-aarch64/05708284-kernel/kernel-core-6.2.8-450.asahi.fc37.aarch64.rpm
wget https://download.copr.fedorainfracloud.org/results/@asahi/kernel-edge/fedora-37-aarch64/05708284-kernel/kernel-modules-6.2.8-450.asahi.fc37.aarch64.rpm
wget https://download.copr.fedorainfracloud.org/results/@asahi/kernel-edge/fedora-37-aarch64/05708284-kernel/kernel-modules-core-6.2.8-450.asahi.fc37.aarch64.rpm

rpm -ivh kernel-6.2.8-450.asahi.fc37.aarch64.rpm kernel-core-6.2.8-450.asahi.fc37.aarch64.rpm kernel-modules-6.2.8-450.asahi.fc37.aarch64.rpm kernel-modules-core-6.2.8-450.asahi.fc37.aarch64.rpm

@tudorbarascu
Copy link

tudorbarascu commented Mar 29, 2023

Hi again and thanks :)

rpm -ql kernel-modules-core-6.2.8-450.asahi.fc37.aarch64 | grep -E 'modules.order|modules.builtin' | xargs ls -la
ls: cannot access '/lib/modules/6.2.8-450.asahi.fc37.aarch64/modules.builtin': No such file or directory
ls: cannot access '/lib/modules/6.2.8-450.asahi.fc37.aarch64/modules.builtin.modinfo': No such file or directory
ls: cannot access '/lib/modules/6.2.8-450.asahi.fc37.aarch64/modules.order': No such file or directory

Only 10.

ll /lib/modules/6.2.8-450.asahi.fc37.aarch64 | grep modules
-rw-r--r--. 1 root root  1390775 Mar 28 09:25 modules.alias
-rw-r--r--. 1 root root  1379947 Mar 28 09:25 modules.alias.bin
-rw-r--r--. 1 root root        0 Mar 28 09:25 modules.builtin.alias.bin
-rw-r--r--. 1 root root        0 Mar 28 09:25 modules.builtin.bin
-rw-r--r--. 1 root root   581473 Mar 28 09:25 modules.dep
-rw-r--r--. 1 root root   785703 Mar 28 09:25 modules.dep.bin
-rw-r--r--. 1 root root      357 Mar 28 09:25 modules.devname
-rw-r--r--. 1 root root      975 Mar 28 09:25 modules.softdep
-rw-r--r--. 1 root root   540608 Mar 28 09:25 modules.symbols
-rw-r--r--. 1 root root   659283 Mar 28 09:25 modules.symbols.bin

rpm -ivh kernel-6.2.8-450.asahi.fc37.aarch64.rpm kernel-core-6.2.8-450.asahi.fc37.aarch64.rpm kernel-modules-6.2.8-450.asahi.fc37.aarch64.rpm kernel-modules-core-6.2.8-450.asahi.fc37.aarch64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
	package kernel-modules-core-6.2.8-450.asahi.fc37.aarch64 is already installed
	package kernel-core-6.2.8-450.asahi.fc37.aarch64 is already installed
	package kernel-modules-6.2.8-450.asahi.fc37.aarch64 is already installed
	package kernel-6.2.8-450.asahi.fc37.aarch64 is already installed
[root@fedora of]# rpm -ivh --reinstall kernel-6.2.8-450.asahi.fc37.aarch64.rpm kernel-core-6.2.8-450.asahi.fc37.aarch64.rpm kernel-modules-6.2.8-450.asahi.fc37.aarch64.rpm kernel-modules-core-6.2.8-450.asahi.fc37.aarch64.rpm
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:kernel-modules-core-6.2.8-450.asa################################# [ 13%]
   2:kernel-core-6.2.8-450.asahi.fc37 ################################# [ 25%]
   3:kernel-modules-6.2.8-450.asahi.fc################################# [ 38%]
   4:kernel-6.2.8-450.asahi.fc37      ################################# [ 50%]
Cleaning up / removing...
   5:kernel-6.2.8-450.asahi.fc37      ################################# [ 63%]
   6:kernel-modules-6.2.8-450.asahi.fc################################# [ 75%]
   7:kernel-modules-core-6.2.8-450.asa################################# [ 88%]
   8:kernel-core-6.2.8-450.asahi.fc37 ################################# [100%]
depmod: WARNING: could not open modules.order at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.order at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
dracut-install: Failed to find module 'apple_mailbox'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.40Vs75/initramfs --kerneldir /lib/modules/6.2.8-450.asahi.fc37.aarch64/ -m apple_mailbox nvme_apple pinctrl-apple-gpio macsmc macsmc-rtkit i2c-apple tps6598x apple-dart dwc3 dwc3-of-simple nvmem-apple-efuses phy-apple-atc xhci-pci pcie-apple gpio_macsmc spi-apple spi-hid-apple spi-hid-apple-of rtc-macsmc simple-mfd-spmi spmi-apple-controller nvmem_spmi_mfd apple-dockchannel dockchannel-hid apple-rtkit-helper
depmod: WARNING: could not open modules.order at /var/tmp/dracut.40Vs75/initramfs/lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/dracut.40Vs75/initramfs/lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /var/tmp/dracut.40Vs75/initramfs/lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
^[The param /boot/boot/vmlinuz-6.2.8-450.asahi.fc37.aarch64 is incorrect
The param /boot/boot/vmlinuz-6.2.0-100.asahi11.1.fc37.aarch64 is incorrect
The param /boot/boot/vmlinuz-6.2.0-100.asahi11.1.fc37.aarch64 is incorrect
Reading m1n1 config from /etc/m1n1.conf:
Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
m1n1 updated at /run/.system-efi/m1n1/boot.bin

@leifliddy
Copy link
Owner Author

@tudorbarascu Arggg I'm not sure what would cause that. I see that you're running one of my earlier builds that has the /boot btrfs subvolume. I'm not sure if that would cause any issue or not.
My later builds created a dedicated ext4 /boot partition
So, I just update this project to use the Asahi Fedora Remix repos.
I know it might be a huge PITA to reinstall everything. But that would definitely future-proof your system.

@tudorbarascu
Copy link

I don't follow. :). So I should update to Fedora 38 or reinstall everything? Thank you

@leifliddy
Copy link
Owner Author

leifliddy commented Apr 1, 2023

I would just reinstall everything. That way you get the dedicated /boot partition.
Booting to macos and running sudo curl -L https://alx.sh/wipe-linux | sh will remove the existing Linux partitions.

@tudorbarascu
Copy link

I have two systems like this, one in production + my laptop. Tried upgrading to fedora 38 and see if it fixes, same error. Will stay a little bit longer until I find the time to move everything. I don't mind the installing but moving all the settings whatever packages, docker images etc. I had is the hard part :) and I don't know if there's a way to preserve that, guess not. Thank you, you're doing a great job.

@tudorbarascu
Copy link

Just installed Fedora Remix from stratch. Interresting if I reinstall the kernel I get:

Reinstalling:
 kernel      aarch64 6.2.8-400.asahi.fc38
                        copr:copr.fedorainfracloud.org:group_asahi:kernel 162 k
 kernel-core aarch64 6.2.8-400.asahi.fc38
                        copr:copr.fedorainfracloud.org:group_asahi:kernel  18 M
 kernel-headers
             aarch64 6.2.8-400.asahi.fc38
                        copr:copr.fedorainfracloud.org:group_asahi:kernel 1.6 M
 kernel-modules
             aarch64 6.2.8-400.asahi.fc38
                        copr:copr.fedorainfracloud.org:group_asahi:kernel  53 M
 kernel-modules-core
             aarch64 6.2.8-400.asahi.fc38
                        copr:copr.fedorainfracloud.org:group_asahi:kernel  39 M
 kernel-modules-extra
             aarch64 6.2.8-400.asahi.fc38
                        copr:copr.fedorainfracloud.org:group_asahi:kernel 2.0 M

Transaction Summary
================================================================================

Total download size: 114 M
Installed size: 219 M
Is this ok [y/N]: y
Downloading Packages:
(1/6): kernel-headers-6.2.8-400.asahi.fc38.aarc 6.2 MB/s | 1.6 MB     00:00    
(2/6): kernel-6.2.8-400.asahi.fc38.aarch64.rpm  191 kB/s | 162 kB     00:00    
(3/6): kernel-core-6.2.8-400.asahi.fc38.aarch64 9.5 MB/s |  18 MB     00:01    
(4/6): kernel-modules-extra-6.2.8-400.asahi.fc3 2.1 MB/s | 2.0 MB     00:00    
(5/6): kernel-modules-6.2.8-400.asahi.fc38.aarc  18 MB/s |  53 MB     00:02    
(6/6): kernel-modules-core-6.2.8-400.asahi.fc38  16 MB/s |  39 MB     00:02    
--------------------------------------------------------------------------------
Total                                            34 MB/s | 114 MB     00:03     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1 
  Reinstalling     : kernel-modules-core-6.2.8-400.asahi.fc38.aarch64      1/12 
  Reinstalling     : kernel-core-6.2.8-400.asahi.fc38.aarch64              2/12 
  Running scriptlet: kernel-core-6.2.8-400.asahi.fc38.aarch64              2/12 
  Reinstalling     : kernel-modules-6.2.8-400.asahi.fc38.aarch64           3/12 
  Running scriptlet: kernel-modules-6.2.8-400.asahi.fc38.aarch64           3/12 
  Reinstalling     : kernel-6.2.8-400.asahi.fc38.aarch64                   4/12 
  Reinstalling     : kernel-modules-extra-6.2.8-400.asahi.fc38.aarch64     5/12 
  Running scriptlet: kernel-modules-extra-6.2.8-400.asahi.fc38.aarch64     5/12 
  Reinstalling     : kernel-headers-6.2.8-400.asahi.fc38.aarch64           6/12 
  Cleanup          : kernel-modules-extra-6.2.8-400.asahi.fc38.aarch64     7/12 
  Running scriptlet: kernel-modules-extra-6.2.8-400.asahi.fc38.aarch64     7/12 
  Cleanup          : kernel-6.2.8-400.asahi.fc38.aarch64                   8/12 
  Running scriptlet: kernel-6.2.8-400.asahi.fc38.aarch64                   8/12 
  Cleanup          : kernel-modules-6.2.8-400.asahi.fc38.aarch64           9/12 
  Running scriptlet: kernel-modules-6.2.8-400.asahi.fc38.aarch64           9/12 
  Cleanup          : kernel-modules-core-6.2.8-400.asahi.fc38.aarch64     10/12 
  Running scriptlet: kernel-modules-core-6.2.8-400.asahi.fc38.aarch64     10/12 
  Running scriptlet: kernel-core-6.2.8-400.asahi.fc38.aarch64             11/12 
  Cleanup          : kernel-core-6.2.8-400.asahi.fc38.aarch64             11/12 
  Cleanup          : kernel-headers-6.2.8-400.asahi.fc38.aarch64          12/12 
  Running scriptlet: kernel-modules-core-6.2.8-400.asahi.fc38.aarch64     12/12 
depmod: WARNING: could not open modules.order at /lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory

  Running scriptlet: kernel-core-6.2.8-400.asahi.fc38.aarch64             12/12 
Generating grub configuration file ...
mount: /var/lib/os-prober/mount: mount(2) system call failed: No such file or directory.
       dmesg(1) may have more information after failed mount system call.
Adding boot menu entry for UEFI Firmware Settings ...
done
depmod: WARNING: could not open modules.order at /lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
dracut-install: Failed to find module 'xhci-pci'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.ID5807/initramfs --kerneldir /lib/modules/6.2.8-400.asahi.fc38.aarch64/ -m apple_mailbox nvme_apple pinctrl-apple-gpio macsmc macsmc-rtkit i2c-apple tps6598x apple-dart dwc3 dwc3-of-simple nvmem-apple-efuses phy-apple-atc xhci-pci pcie-apple gpio_macsmc spi-apple spi-hid-apple spi-hid-apple-of rtc-macsmc simple-mfd-spmi spmi-apple-controller nvmem_spmi_mfd apple-dockchannel dockchannel-hid apple-rtkit-helper
depmod: WARNING: could not open modules.order at /var/tmp/dracut.ID5807/initramfs/lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/dracut.ID5807/initramfs/lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /var/tmp/dracut.ID5807/initramfs/lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
dracut-install: Failed to find module 'xhci-pci'
dracut: FAILED:  /usr/lib/dracut/dracut-install -D /var/tmp/dracut.u8CjnC/initramfs --kerneldir /lib/modules/6.2.8-400.asahi.fc38.aarch64/ -m apple_mailbox nvme_apple pinctrl-apple-gpio macsmc macsmc-rtkit i2c-apple tps6598x apple-dart dwc3 dwc3-of-simple nvmem-apple-efuses phy-apple-atc xhci-pci pcie-apple gpio_macsmc spi-apple spi-hid-apple spi-hid-apple-of rtc-macsmc simple-mfd-spmi spmi-apple-controller nvmem_spmi_mfd apple-dockchannel dockchannel-hid apple-rtkit-helper
depmod: WARNING: could not open modules.order at /var/tmp/dracut.u8CjnC/initramfs/lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /var/tmp/dracut.u8CjnC/initramfs/lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /var/tmp/dracut.u8CjnC/initramfs/lib/modules/6.2.8-400.asahi.fc38.aarch64: No such file or directory

  Running scriptlet: kernel-modules-6.2.8-400.asahi.fc38.aarch64          12/12 
  Running scriptlet: kernel-headers-6.2.8-400.asahi.fc38.aarch64          12/12 
Reading m1n1 config from /etc/m1n1.conf:
Mounted System ESP /dev/nvme0n1p4 at /run/.system-efi
m1n1 updated at /run/.system-efi/m1n1/boot.bin

  Verifying        : kernel-6.2.8-400.asahi.fc38.aarch64                   1/12 
  Verifying        : kernel-6.2.8-400.asahi.fc38.aarch64                   2/12 
  Verifying        : kernel-core-6.2.8-400.asahi.fc38.aarch64              3/12 
  Verifying        : kernel-core-6.2.8-400.asahi.fc38.aarch64              4/12 
  Verifying        : kernel-headers-6.2.8-400.asahi.fc38.aarch64           5/12 
  Verifying        : kernel-headers-6.2.8-400.asahi.fc38.aarch64           6/12 
  Verifying        : kernel-modules-6.2.8-400.asahi.fc38.aarch64           7/12 
  Verifying        : kernel-modules-6.2.8-400.asahi.fc38.aarch64           8/12 
  Verifying        : kernel-modules-core-6.2.8-400.asahi.fc38.aarch64      9/12 
  Verifying        : kernel-modules-core-6.2.8-400.asahi.fc38.aarch64     10/12 
  Verifying        : kernel-modules-extra-6.2.8-400.asahi.fc38.aarch64    11/12 
  Verifying        : kernel-modules-extra-6.2.8-400.asahi.fc38.aarch64    12/12 

Reinstalled:
  kernel-6.2.8-400.asahi.fc38.aarch64                                           
  kernel-core-6.2.8-400.asahi.fc38.aarch64                                      
  kernel-headers-6.2.8-400.asahi.fc38.aarch64                                   
  kernel-modules-6.2.8-400.asahi.fc38.aarch64                                   
  kernel-modules-core-6.2.8-400.asahi.fc38.aarch64                              
  kernel-modules-extra-6.2.8-400.asahi.fc38.aarch64             

@leifliddy
Copy link
Owner Author

leifliddy commented Apr 3, 2023

@tudorbarascu Did you use this installer? https://www.asahi-fedora-remix.org/
I'm just asking as my project now uses the asahi fedora remix repos as well.
But mine uses the copr:copr.fedorainfracloud.org:group_asahi:kernel-edge repo (the 450 kernels)

@leifliddy
Copy link
Owner Author

leifliddy commented Apr 3, 2023

@tudorbarascu which kernel are you currently running? Can you post the output of uname -a?
You should never reinstall a kernel while you're running that same kernel.

I get the same error if I try to reinstall kernel-modules-core-6.2.8-450.asahi.fc37.aarch64 while I'm running kernel 6.2.8-450.asahi.fc37

Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                                                                                    1/1 
  Reinstalling     : kernel-modules-core-6.2.8-450.asahi.fc37.aarch64                                                                                                                                   1/2 
  Cleanup          : kernel-modules-core-6.2.8-450.asahi.fc37.aarch64                                                                                                                                   2/2 
  Running scriptlet: kernel-modules-core-6.2.8-450.asahi.fc37.aarch64                                                                                                                                   2/2 
depmod: WARNING: could not open modules.order at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory
depmod: WARNING: could not open modules.builtin.modinfo at /lib/modules/6.2.8-450.asahi.fc37.aarch64: No such file or directory

  Verifying        : kernel-modules-core-6.2.8-450.asahi.fc37.aarch64                                                                                                                                   1/2 
  Verifying        : kernel-modules-core-6.2.8-450.asahi.fc37.aarch64                                                                                                                                   2/2 

Reinstalled:
  kernel-modules-core-6.2.8-450.asahi.fc37.aarch64                                                                                                                                                          

Complete!

@tudorbarascu
Copy link

tudorbarascu commented Apr 3, 2023

Oh, in that case that's why. I did the reinstall while running it. I'm running Linux 192-168-0-191.rdsnet.ro 6.2.8-400.asahi.fc38.aarch64 #1 SMP PREEMPT_DYNAMIC Sat Mar 25 17:49:43 UTC 2023 aarch64 GNU/Linux

I used the https://www.asahi-fedora-remix.org/ installer

@leifliddy
Copy link
Owner Author

You might want to install the asahi-repos-edge rpm and install the edge kernel, unless you don't want accelerated graphics.

@tudorbarascu
Copy link

tudorbarascu commented Apr 4, 2023

Thank you. I managed to make the transition fairly painless (I think it was painless actually).

For anyone else in my state:

  1. I created a list with installed packages to reinstall after: https://www.addictivetips.com/ubuntu-linux-tips/quickly-re-install-all-installed-apps-on-fedora/
  2. Did a rsync for important endpoints while keeping the privileges: /home, /etc .. E.g. I cd-ed to a location on an external ssd and did arsync -avz --progress /home .
  3. Whiped the installation using sudo curl -L https://alx.sh/wipe-linux | sh and reinstalled using the script from https://www.asahi-fedora-remix.org/
  4. After reinstalling all the packages from step 1, I installed asahi-repos-edge rpm and install the edge kernel
  5. rsynced back from the backup what it was in /etc/NetworkManager/system-connections and everything from/homeand basically I had my system back :).

Hmm. The only interesting thing is that I cannot see anymore the grub menu to select the different kernels.

@leifliddy
Copy link
Owner Author

Hmm. The only interesting thing is that I cannot see anymore the grub menu to select the different kernels.

They've made that decision because apparently Fedora workstation doesn't show the grub menu by default. My build doesn't hide the grub menu like that.
I would just change /etc/default/grub to look like this

GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
GRUB_DEFAULT=saved
GRUB_DISABLE_SUBMENU=true
GRUB_TERMINAL_OUTPUT=""
GRUB_CMDLINE_LINUX=""
GRUB_DISABLE_RECOVERY="true"
GRUB_ENABLE_BLSCFG=true

and then update grub

@shlyakpavel
Copy link

shlyakpavel commented Apr 19, 2023

I have the same issue as tudorbarascu
P. S. dracut error goes away with uninstalling dracut-asahi package, but system still cannot load. Reinstalling

@tudorbarascu
Copy link

tudorbarascu commented Jun 29, 2023

Hi, I transitioned to Fedora Remix with reinstall and it all went well until today when my system froze. I waited for a minute with my screen frozen on KDE, did a force poweroff and now it doesn't mount the main fedora partition. Any ideas? I tried mounting manually but it doesn't let me because of btrfs inconsistency? I've attached the
rdsosreport.txt . Hopefully it's just bad luck and not a underlying issue.

@vwbusguy
Copy link

vwbusguy commented Aug 17, 2023

Hi, I transitioned to Fedora Remix with reinstall and it all went well until today when my system froze.

If you have issues after successfully migrating to the Fedora Remix, I suggest submitted them to the Fedora Remix project on a per-issue basis: https://pagure.io/fedora-asahi/project/issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants