Skip to content

Reboot detection false positiv #29

@AleksCee

Description

@AleksCee

On one host the agent sends a needed reboot because of the old kernel, but the kernel is uptodate.

I think (if I interpreted the reboot.go the right way) that the Funktion finds the virtual dpkg entry and this didn’t match:

Log:

time="2025-11-28T20:11:26" level=info msg="Checking reboot status..."
time="2025-11-28T20:11:26" level=info msg="Reboot status check completed" installed_kernel=virtual needs_reboot=true reason="Kernel version mismatch" running_kernel=6.8.0-88-generic

uname -r

uname -r
6.8.0-88-generic
ls -l /boot/vmlinuz-*
-rw------- 1 root root 15006088 Okt 10 20:41 /boot/vmlinuz-6.8.0-87-generic
-rw------- 1 root root 15014280 Okt 11 01:40 /boot/vmlinuz-6.8.0-88-generic

Dpkg list:

ii  linux-modules-6.8.0-87-generic  6.8.0-87.88                             amd64        Linux kernel extra modules for version 6.8.0 on 64 bit x86 SMP
ii  linux-modules-6.8.0-88-generic  6.8.0-88.89                             amd64        Linux kernel extra modules for version 6.8.0 on 64 bit x86 SMP
ii  linux-tools-6.8.0-87            6.8.0-87.88                             amd64        Linux kernel version specific tools for version 6.8.0-87
ii  linux-tools-6.8.0-87-generic    6.8.0-87.88                             amd64        Linux kernel version specific tools for version 6.8.0-87
ii  linux-tools-6.8.0-88            6.8.0-88.89                             amd64        Linux kernel version specific tools for version 6.8.0-88
ii  linux-tools-6.8.0-88-generic    6.8.0-88.89                             amd64        Linux kernel version specific tools for version 6.8.0-88
ii  linux-tools-common              6.8.0-88.89                             all          Linux kernel version specific tools for version 6.8.0
ii  linux-virtual                   6.8.0-88.89                             amd64        Minimal Generic Linux kernel and headers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions