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

Rpm-ostree override replace on android aboot doesn't trigger aboot-update #4926

Open
BeeGrech opened this issue Apr 18, 2024 Discussed in #4925 · 2 comments
Open

Rpm-ostree override replace on android aboot doesn't trigger aboot-update #4926

BeeGrech opened this issue Apr 18, 2024 Discussed in #4925 · 2 comments

Comments

@BeeGrech
Copy link

Discussed in #4925

Originally posted by BeeGrech April 18, 2024
Attempting to replace the current image kernel package on android-boot deployment does not trigger aboot-update therefore the newly installed kernel is not updated, and thus not booted.

 rpm-ostree override replace /root/kernel*.rpm
Checking out tree 935f68d... done
Enabled rpm-md repositories: cki-1229133128-aarch64 epel-next epel beaker-harness rhivos rhivos-debug rhivos-source osbuild epel-cisco-openh264
Importing rpm-md... done
rpm-md repo 'cki-1229133128-aarch64' (cached); generated: 2024-03-27T03:51:24Z solvables: 13
rpm-md repo 'epel-next' (cached); generated: 2024-04-17T02:46:00Z solvables: 1069
rpm-md repo 'epel' (cached); generated: 2024-04-17T02:41:23Z solvables: 25307
rpm-md repo 'beaker-harness' (cached); generated: 2024-04-15T19:48:49Z solvables: 95
rpm-md repo 'rhivos' (cached); generated: 2024-04-17T00:11:27Z solvables: 6361
rpm-md repo 'rhivos-debug' (cached); generated: 2024-04-17T00:12:09Z solvables: 4007
rpm-md repo 'rhivos-source' (cached); generated: 2024-04-17T00:11:29Z solvables: 2413
rpm-md repo 'osbuild' (cached); generated: 2024-04-15T09:15:41Z solvables: 18
rpm-md repo 'epel-cisco-openh264' (cached); generated: 2023-05-22T16:19:21Z solvables: 4
Resolving dependencies... done
Applying 4 overrides and 2 overlays
Processing packages... done
Running pre scripts... done
Running post scripts... done
Running posttrans scripts... done
Writing rpmdb... done
Generating initramfs... done
Writing OSTree commit... done
Staging deployment... done
Downgraded:
  kernel-automotive 5.14.0-437.389.el9iv -> 5.14.0-433.385.el9iv
  kernel-automotive-core 5.14.0-437.389.el9iv -> 5.14.0-433.385.el9iv
  kernel-automotive-modules 5.14.0-437.389.el9iv -> 5.14.0-433.385.el9iv
  kernel-automotive-modules-core 5.14.0-437.389.el9iv -> 5.14.0-433.385.el9iv
Added:
  epel-next-release-9-7.el9.noarch
  epel-release-9-7.el9.noarch
Use "rpm-ostree override reset" to undo overrides
Run "systemctl reboot" to start a reboot
[root@qti-snapdragon-ride4-sa8775p-18 ~]# uname -r
5.14.0-437.389.el9iv.aarch64
snapdragon-ride4-sa8775p-18 ~]# reboot
[root@qti-snapdragon-ride4-sa8775p-18 ~]# Connection to qti-snapdragon-ride4-s[REDACTED] closed by remote host.
Connection to qti-snapdragon-ride4-s[REDACTED] closed.
[user@fedora]~% ssh root@qti-snapdragon-ride4-s[REDACTED]
Boot Status is GREEN - Health Check SUCCESS
Last login: Wed Apr 17 18:28:31 2024 from [REDACTED]
[root@qti-snapdragon-ride4-sa8775p-18 ~]# uname -r
5.14.0-437.389.el9iv.aarch64
```</div>
@ericcurtin
Copy link
Contributor

Local kernel upgrades/downgrades are not fun in rpm-ostree.

@jlebon
Copy link
Member

jlebon commented Apr 18, 2024

This is probably an ostree issue instead. I would check for journal logs of failures from ostree-finalize-staged.service on the previous boot (or rpm-ostree status may also show it). Likely finalization might not be going right, or possibly the call to aboot-deploy.

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

3 participants