Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Run dkms after armbian-upgrade

Featured Replies

Hi! I'm new in the forum, so I don't know if this is a bug or just a feature request.

 

The idea is `armbian-upgrade` also runs dkms install, you know, like Ubuntu, so the zfs kernel module will be automatically building together with the kernel upgrade.

 

Please, let me hear your thoughts about this. Maybe there is a flag to enable this already, or an open bug to implement the feature.

  • Author

Hi @Werner It seems the problem is in another place. The unattended upgrade updates the kernel, but the dkms hooks are not installed. I just got a couple kernel updates, and neither of them ran the DKMS, and since I'm using ZFS, it causes serious problems since the ZFS module wouldn't be build, so after a reboot wouldn't load and I couldn't access the data in my disks. I don't think adding the command to `armbian-upgrade` would solve since `apt upgrade` would still have the problem, and also the unattended upgrades, like mentioned before.

Any ideas?

EDIT: I found the problem, but couldn't find a solution.

What is happening, is the kernel package is updated first, so actually it calls the dkms hook, but the headers wouldn't be installed, at least the latest version, yet, so the dkms can't run.

The problem is how to install the headers before the kernel, or call the dkms hook from the headers package, so even if the kernel calls dkms but can't run because of the lack of updated headers, the headers will do that and succeed.

Edited by Marcos Alano

  • Author

I think it's easier than that. I looked into the postinst file for kernel headers on my Ubuntu machine, and I found this:

#!/bin/sh
set -e
version=6.17.0-7-generic
if [ "$1" != configure ]; then
    exit 0
fi
if [ -d /etc/kernel/header_postinst.d ]; then
    DEB_MAINT_PARAMS="$*" run-parts --report --exit-on-error --arg=$version \
        /etc/kernel/header_postinst.d
fi
exit 0

The postinst script for the headers package doesn't have anything similar, so we should add it this part related to execute the scripts under `/etc/kernel/header_postinst.d`.

 

Can you do that or should we add someone else to the discussion?

 

 

EDIT: Debian does something similar. Same goal, just a different code:

#!/bin/sh -e
version=6.12.48+deb13-amd64
linux-run-hooks headers postinst $version -- "$@"
exit 0

 

Edited by Marcos Alano

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.