Skip to content

kernel-aurora 7.3.0-37: require update-m1n1 20261107-6, take back user4k=on on erase - #320

Open
DjDeveloperr wants to merge 2 commits into
mainfrom
fix/kernel-aurora-m1n1-floor-user4k
Open

DjDeveloperr wants to merge 2 commits into
mainfrom
fix/kernel-aurora-m1n1-floor-user4k

Conversation

@DjDeveloperr

@DjDeveloperr DjDeveloperr commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Two small kernel-aurora spec fixes found by the Neo qualification of 7.3.0-36. Fixes #317 and part (1) of #319.

1. Requires: update-m1n1 >= 20261107-6 (was >= 20261107)

update-m1n1 20261107-5 still satisfies the old floor. It counts a kernel without a dtb-abi marker (7.3.0-22 or older) as DT ABI generation 0, and refuses the new kernel's trees. 15-update-m1n1.install fails, and kernel-install stops before the new kernel's initramfs and boot entry, while the packages are installed. The Neo hit this on a kernel-only upgrade. 20261107-6, in both testing channels, counts such kernels as generation 1. The rest of #319, the pre-transaction check and running the repair after the transaction, are separate.

2. aurora-userpages takes back its user4k=on on erase

%posttrans adds user4k=on to every boot entry when no user4k= is set, and nothing removed it. Now:

  • %posttrans records /var/lib/aurora-userpages/user4k-added, only when grubby ran.
  • %postun runs on a full erase ($1 -eq 0) and only with that record. It runs grubby --update-kernel=ALL --remove-args=user4k=on and removes the record.
  • An owner's own user4k= stays.
  • Systems that got the argument before the record existed keep it, since there's no telling who added it.
  • The record isn't a %ghost, because rpm would delete it before %postun could read it.

Release and tests

  • Release 36 → 37, with a changelog entry.
  • tests/test_specs.py:
    • the %posttrans test now also checks the record;
    • a new %postun test covers three cases: erase with the record, erase without it, and an upgrade with it.
  • 58 tests pass locally (python3 -m unittest tests.test_specs); nothing else was run on the host.

For RyanTheTide's review; merging is his call.

Not yet

  • Install the CI RPM on an eligible Fedora Mac and verify boot and rollback leave the intended kernel arguments and bootloader version.

DjDeveloperr and others added 2 commits November 12, 2026 07:40
…r4k=on

kernel-aurora-core required update-m1n1 20261107 or later, which an
update-m1n1 20261107-5 satisfies. That one counts a kernel without a
dtb-abi marker as DT ABI generation 0, refuses the new kernel's trees,
and kernel-install stops before the initramfs and the boot entry. The
Neo's qualification of 7.3.0-36 hit it with a kernel-only upgrade. -6
counts such kernels as generation 1, so the core package now requires
it (#319).

aurora-userpages' %posttrans adds user4k=on to every boot entry when
no user4k= is set, and nothing took it back on erase. %posttrans now
records that it added the argument, and %postun removes it on a full
erase only with that record, so an owner's own user4k= stays (#317).
Systems that got it before the record existed keep it.

Signed-off-by: Diljit Singh <hey@djdev.me>
Main took kernel-aurora Releases 37 through 41; this change moves to 42.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@RyanTheTide

Copy link
Copy Markdown
Contributor

Merged current main (27d7311) into this branch as b1b090b, without rewriting history. main had taken Releases 37 to 41, so this change now goes in as 7.3.0-42 and its changelog entry sits above -41. Nothing else changed.

Tests:

  • python3 -m unittest tests.test_specs: 61 tests, OK.
  • I ran the two aurora-userpages scriptlets from the spec with Fedora 45's grubby, on two BLS entries plus /etc/kernel/cmdline:
case after %posttrans after %postun
no user4k= set, then erase ($1=0) both entries and /etc/kernel/cmdline get user4k=on, record written user4k=on removed from both entries and /etc/kernel/cmdline, record gone
upgrade ($1=1) user4k=on, record written unchanged, record kept
owner's user4k=off untouched, no record untouched
user4k=on from before the record existed n/a kept

So grubby --update-kernel=ALL also edits /etc/kernel/cmdline, and later kernels won't bring the argument back. That answers the open question in #317.

🤖 Generated with Claude Code

@RyanTheTide

Copy link
Copy Markdown
Contributor

The %posttrans -n aurora-userpages scriptlet in kernel-aurora.spec still runs grubby --update-kernel=ALL --args=user4k=on; this PR only adds a record so %postun can take it back on erase. The feature should not need a kernel argument at all: the kernel now offers per-process 4K pages by default, and #417 removes the argument instead. Rebase on that approach (no --args, a one-time --remove-args for systems that got it) and keep the update-m1n1 >= 20261107-6 requirement, which is independent. Until then this should stay a draft.

@RyanTheTide
RyanTheTide marked this pull request as draft November 20, 2026 23:56
@RyanTheTide

Copy link
Copy Markdown
Contributor

Blockers: 2.

The user4k half is already covered above: it waits for #417's approach, with no --args and a one-time --remove-args. Two more things:

  1. Release number. The Edge kernels already used 7.3.0-42 and 7.3.0-43 (see kernel-aurora 7.3.0-44 (linux#2549, platform profiles without ACPI) with aurora-firstboot 0.1.13-7 (tuned-ppd bridge) #451's description), and kernel-aurora 7.3.0-44 (linux#2549, platform profiles without ACPI) with aurora-firstboot 0.1.13-7 (tuned-ppd bridge) #451 takes -44. Release: 42 (packages/kernel-aurora/kernel-aurora.spec:17) would ship a package whose NVR is at or below kernels already in the Edge channel, so dnf on an Edge system never picks it up. Take the next free number after kernel-aurora 7.3.0-44 (linux#2549, platform profiles without ACPI) with aurora-firstboot 0.1.13-7 (tuned-ppd bridge) #451, and update the title, which still says 7.3.0-37.
  2. Merge commit b1b090b carries Co-Authored-By: Claude Opus 5.5 and no Signed-off-by. Rebase onto main instead of merging, so only 62c47d2's human sign-off is left, or drop the trailer.

Suggestion: split the Requires: update-m1n1 >= 20261107-6 line into its own PR. It fixes a real install break on its own. With -5, 15-update-m1n1.install refuses the new trees and kernel-install stops before the initramfs and boot entry. It doesn't depend on #417. The floor itself is correct: main's update-m1n1 is 20261107-9, and rpm sorts -6.fc4x above -6.

HW row: on the rebased head, a kernel-only dnf upgrade kernel-aurora on a Mac that has update-m1n1 20261107-5 installed. dnf must pull in -6 or later in the same transaction, and kernel-install must write the initramfs and boot entry. Then reboot into it with 0 AVC, 0 failed units and no new kernel errors.

Assisted-by: LLM (Claude:Opus 5.5)

@DjDeveloperr
DjDeveloperr marked this pull request as ready for review November 30, 2026 20:46
@DjDeveloperr
DjDeveloperr requested a review from a team as a code owner November 30, 2026 20:46
@github-actions github-actions Bot added merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks required sections (bot) labels Nov 30, 2026
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Merge readiness at b1b090b1: not ready yet

Check Detail
CI at head ok 20 checks passed
Review no needs one approving review from Core, Omarchy Mac or Aurora Maintainers (not the author)
Requested changes ok none
Hardware row at head no no line with the head SHA b1b090b1, a Mac and a result in the PR body or a comment
Conflicts no merge conflicts with main: merge it in (no force push)
PR text adopt when you next edit add a 'Tested:' line; a 'Risk:' line (door and Macs) (guide)

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES at b1b090b1

Blockers:

  1. Branch is CONFLICTING with main and carries an obsolete Release: bump. packages/kernel-aurora/kernel-aurora.spec on main is already at Release: 47%{?dist}.aurora, whereas this PR bumps 41 -> 42 and conflicts with current main.
  2. Unresolved user4k=on erase/upgrade semantics. As noted in the 2026-11-21 review comment, the aurora-userpages %posttrans/erase half needs to align with the #417 approach (no --args rewrite; one-time --remove-args), or be split from the Requires: update-m1n1 >= 20261107-6 floor bump (which main still has as >= 20261107).

Checked:

  • Diff (+57/-4, 2 files) against current main packages/kernel-aurora/kernel-aurora.spec (Version: 7.3.0, Release: 47%{?dist}.aurora, Requires: update-m1n1 >= 20261107).
Evidence
  • main packages/kernel-aurora/kernel-aurora.spec:17 is Release: 47%{?dist}.aurora; line 46 is still Requires: update-m1n1 >= 20261107.
  • Rebase onto main (and split or update the user4k handling) if still needed, or close if superseded.

@aurora-silicon-review
aurora-silicon-review Bot dismissed their stale review December 1, 2026 04:59

Dismissed under the 12-01 merge bar: this review's blockers were not shown failures (CI/rows/rebase/design or re-run asks). Follow-ups, not blocking: Design ask not evaluated; follow-ups: rebase obsolete Release bump, align user4k erase with #417 or split

@RyanTheTide

Copy link
Copy Markdown
Contributor

Conflict / status check against main (caac3c2): packages/kernel-aurora/kernel-aurora.spec conflicts because main is now at Release: 53%{?dist}.aurora (7.3.0-53, commit caac3c2), well past this PR's Release: 42. As noted in the 11-20 and 11-21 reviews, the user4k=on erase-rollback half is superseded by #417's approach. Recommend closing this PR (or opening a small standalone PR on current main if the update-m1n1 >= 20261107-6 floor is still wanted).

@RyanTheTide

Copy link
Copy Markdown
Contributor

This pins kernel-aurora 7.3.0-37 (from 11-12) and conflicts with main; main's kernel-aurora and update-m1n1 pins have moved well past it. It looks superseded. Close it, or rebase if any part (e.g. the user4k change) is still needed?

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-conflict Conflicts with the base branch (bot) needs-hw-row No hardware row at the PR head (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) needs-template PR body lacks required sections (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aurora-userpages: user4k=on stays in every boot entry after the package is erased

2 participants