Commit graph

60 commits

Author SHA1 Message Date
Janne Grunau
eb78052afd Fix update-m1n1 invocation from kernel-install add ...
At the time kernel-install runs 15-update-m1n1.install "/boot/dtb" might
be a dangling symlink as /boot/dtb-${KERNEL_VERSION} has not yet been
created.
Take advantage of the proposed $DTBS directory support [1] and use
"/boot/dtb" as DTBS default location.
Add an fedora specific patch to detect the dangling symlink and use the
dtb directory from the kernel's modules directory in /usr/lib/modules.

1: https://github.com/AsahiLinux/asahi-scripts/pull/67
2025-08-19 23:16:25 +02:00
Davide Cavalca
65b4ede499 Update to 20250713 2025-07-13 19:00:49 -07:00
Davide Cavalca
49e26631ee Preserve timestamps when installing the kernel-install script 2025-07-13 19:00:27 -07:00
Janne Grunau
6507e7f0a2 update-m1n1: Use kernel-install script instead of filetrigger for dtb updates
This has various advantages:
- a failure can prevent kernel-install to create a boot loader entry
  which in the worst case won't boot due to a 2nd stage m1n1 dtbs vs.
  kernel mismatch
- It would allow to replicate the logic in grubby's
  10-devicetree.install to avoid the dependency and work without
  /boot/dtb symlink. This would simplify the integration for immutable
  Fedora-Asahi-Remix variants.
- it is easier to discover as /usr/lib/kernel/install.d is the expected
  place for scripts to trigger during kernel installation/removal.
- It ensures update-m1n1 runs after the symlink is updated. The ordering
  between the filetrigger and kernel-install during package updates is
  not obviously clear.

There is no rollback mechanism if the kernel-install fails but this
should not differ from the filetrigger.
2025-07-13 23:36:58 +02:00
Janne Grunau
5f59936d3c update-m1n1: Depend on grubby for the /boot/dtb symlink 2025-07-13 23:36:58 +02:00
Davide Cavalca
dfca4e0e1a Own the macsmc-battery config file 2025-05-30 19:38:56 -07:00
Davide Cavalca
22d55c4391 Update to 20250426.1; Fixes: RHBZ#2293832 2025-04-26 15:35:20 -07:00
Davide Cavalca
aef3d9127c Trigger update-m1n1 on config changes 2025-04-16 14:51:55 -07:00
Hector Martin
9c406f8ce9 Give up on the obsoletes dance
This didn't work with dnf.

Drop /etc/m1n1.conf entirely, let users copy it from the example file in
the m1n1 package if they wish.
2025-02-04 04:26:24 +09:00
Hector Martin
7b9c0fa3a0 Argh. 2025-02-03 21:55:18 +09:00
Hector Martin
c1ad434f96 Fix dependencies again?
Third time's the charm, maybe?
2025-02-03 21:54:28 +09:00
Hector Martin
98044933e6 Fix dependencies 2025-02-03 21:40:40 +09:00
Hector Martin
e4e1bf166e Update to 20250130
Moves /etc/m1n1.conf from this package to m1n1.
2025-01-30 23:59:17 +09:00
Davide Cavalca
a425a997a2 Drop expired obsoletes 2025-01-29 09:13:34 +00:00
Hector Martin
9d0aa9aa67 Update to 20250128 2025-01-28 21:06:45 +09:00
Janne Grunau
bc19f28cac Add missing build requirement systemd-rpm-macros for asahi-battery 2024-08-22 20:09:49 +02:00
Janne Grunau
6b86b9e824 Update to 20240822
new package asahi-battery to restore non-persistent EC settings on boot
2024-08-22 19:24:43 +02:00
Davide Cavalca
4d865a3049 Update to 20240429 2024-04-29 08:42:49 -07:00
Janne Grunau
584aefbe35 Add dracut kernel mod robustness patches, try 2
https://github.com/AsahiLinux/asahi-scripts/pull/46
2024-04-25 00:28:54 +02:00
Janne Grunau
1a04eb849b Add dracut kernel mod robustness patches
https://github.com/AsahiLinux/asahi-scripts/pull/45
2024-04-24 19:35:49 +02:00
Janne Grunau
8126e28398 Update to 20240411
Fixes: RHBZ#2245220
2024-04-18 08:57:03 +02:00
Hector Martin
e3c72c4134 Update to 20231219.1 2023-12-19 19:47:18 +09:00
Hector Martin
3d211eaaea Update to 20231219 2023-12-19 19:06:53 +09:00
Hector Martin
572a1c3ac1 Update to 20231218 2023-12-17 22:45:39 +09:00
Hector Martin
d515f8386d Update to 20231217 2023-12-17 22:15:46 +09:00
Davide Cavalca
21dad697e2 Fix trigger for asahi-fwupdate 2023-10-11 16:25:43 -07:00
Davide Cavalca
bbfbd00175 Update to 20230821 2023-08-21 07:48:59 -07:00
Davide Cavalca
3b58fb7eaa Rework and fix file triggers 2023-08-03 14:04:35 +01:00
Neal Gompa
49e166feb1 Revert "Use stable dtbs path to always pick the latest"
This breaks the upgrade path in practice. It does not fire correctly
because /boot/dtb is a symlink and does not actually contain files.

This partly reverts commit 5dd80aff06.
2023-07-30 10:17:43 -04:00
Davide Cavalca
5dd80aff06 Use stable dtbs path to always pick the latest 2023-07-24 15:16:47 -07:00
Davide Cavalca
42d00c5dcb Expand fwupdate trigger to fire on fwextract updates 2023-06-18 18:06:29 +02:00
Davide Cavalca
efb07d58b3 Add trigger for asahi-fwupdate 2023-06-09 09:10:17 -07:00
Davide Cavalca
2e39d0ebfc Fix Requires for asahi-fwupdate 2023-06-08 10:02:33 -07:00
Davide Cavalca
695f66dc6a Rename asahi-fwextract to asahi-fwupdate to match upstream 2023-06-07 14:36:25 -07:00
Davide Cavalca
f589e123c0 Update to 20230606; Fixes: RHHBZ#2213093 2023-06-07 14:18:08 -07:00
Davide Cavalca
d8b114bef9 Update to 20230530; Fixes: RHBZ#2209183 2023-05-30 16:56:16 -07:00
Davide Cavalca
7dd1c9a2c8 Update to 20221220; Fixes: RHBZ#2155355 2023-05-06 15:49:06 -07:00
Davide Cavalca
3483812dd2 Update to 20221206; Fixes: RHBZ#2151445 2022-12-09 03:00:59 +00:00
Davide Cavalca
84cf42d014 Update to 20221129; Fixes: RHBZ#2149785 2022-12-04 10:12:08 -08:00
Davide Cavalca
88e1b77ca7 Update to 20221122; Fixes: RHBZ#2145036 2022-11-26 08:45:00 -08:00
Davide Cavalca
83d655d51d Relax uboot-images-armv8 versioned dependency; Fixes: RHBZ#2140827 2022-11-13 21:29:42 -05:00
Davide Cavalca
c671d2a26e Backport one more upstream fix 2022-11-03 19:27:45 -07:00
Davide Cavalca
8734947ea2 Add linux-firmware-vendor subpackage 2022-11-01 13:35:51 -07:00
Davide Cavalca
f2f435591b Backport asahi-fwextract bugfix 2022-10-31 21:44:10 -07:00
Davide Cavalca
1ca63c2a31 Update to 20221027; Fixes: RHBZ#2137760 2022-10-31 12:02:54 -07:00
Davide Cavalca
4c01d49320 Add asahi-fwextract subpackage 2022-09-19 18:50:09 +02:00
Davide Cavalca
009d551038 Refresh dracut module patch 2022-09-19 18:37:09 +02:00
Davide Cavalca
d49ddc5c3f Add missing Requires for dracut-asahi 2022-09-19 08:14:45 +02:00
Davide Cavalca
513d50696a Add trailing slash to folders 2022-09-18 18:30:04 +02:00
Davide Cavalca
5ffc77cd0a Rename dracut-config-asahi to dracut-asahi 2022-09-18 18:29:33 +02:00