Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Role is removing and adding kernel image alternately #2

@stefanpinter

Description

@stefanpinter

Hello!

thank you for this role!

on at least one of our hosts the role is behaving bad.
when I run it I see it creating initrd and vmlinuz files in /boot
when I run it again it deletes those files
when I run it again, they are here again
this can be done again and again. obviously the server can't boot without these files. ;)
we stumpled over this today - even NO initrd and NO vmlinuz files were there!

Using Ubuntu 20.04

vars:
kernel_variant: generic
kernel_version: 5.4.0-99
reboot_on_kernel_update: false
install_kernel_headers: true

it is alternating between these:

  1. GOOD

root@servername:/boot# apt list --installed | grep 0-99

linux-image-5.4.0-99-generic/focal-updates,focal-security,now 5.4.0-99.112 amd64 [installed]
linux-libc-dev/focal-updates,focal-security,now 5.4.0-99.112 amd64 [installed,automatic]
linux-modules-5.4.0-99-generic/focal-updates,focal-security,now 5.4.0-99.112 amd64 [installed,automatic]
root@servername:/boot# ls -lsah
total 118M
4.0K drwxr-xr-x 4 root root 4.0K Feb 17 11:46 .
4.0K drwxr-xr-x 24 root root 4.0K Feb 17 11:46 ..
233K -rw-r--r-- 1 root root 233K Feb 17 10:07 config-5.4.0-94-generic
233K -rw-r--r-- 1 root root 233K Feb 17 10:07 config-5.4.0-96-generic
233K -rw-r--r-- 1 root root 233K Feb 17 10:07 config-5.4.0-97-generic
233K -rw-r--r-- 1 root root 233K Feb 17 09:31 config-5.4.0-99-generic
1.0K drwxr-xr-x 5 root root 1.0K Feb 17 11:46 grub
36M -rw-r--r-- 1 root root 36M Feb 17 10:07 initrd.img-5.4.0-97-generic
36M -rw-r--r-- 1 root root 36M Feb 17 11:46 initrd.img-5.4.0-99-generic
12K drwx------ 2 root root 12K Jun 20 2016 lost+found
4.6M -rw------- 1 root root 4.6M Feb 17 10:07 System.map-5.4.0-94-generic
4.6M -rw------- 1 root root 4.6M Feb 17 10:07 System.map-5.4.0-96-generic
4.6M -rw------- 1 root root 4.6M Feb 17 10:07 System.map-5.4.0-97-generic
4.6M -rw------- 1 root root 4.6M Feb 17 09:31 System.map-5.4.0-99-generic
14M -rw------- 1 root root 14M Feb 17 10:07 vmlinuz-5.4.0-97-generic
14M -rw------- 1 root root 14M Feb 2 17:23 vmlinuz-5.4.0-99-generic

  1. BAD

root@servername:/boot# apt list --installed | grep 0-99

linux-headers-5.4.0-99-generic/focal-updates,focal-security,now 5.4.0-99.112 amd64 [installed]
linux-headers-5.4.0-99/focal-updates,focal-security,now 5.4.0-99.112 all [installed,automatic]
linux-libc-dev/focal-updates,focal-security,now 5.4.0-99.112 amd64 [installed,automatic]
linux-modules-5.4.0-99-generic/focal-updates,focal-security,now 5.4.0-99.112 amd64 [installed,automatic]
root@servername:/boot# ls -lsah
total 69M
4.0K drwxr-xr-x 4 root root 4.0K Feb 17 11:47 .
4.0K drwxr-xr-x 24 root root 4.0K Feb 17 11:47 ..
233K -rw-r--r-- 1 root root 233K Feb 17 10:07 config-5.4.0-94-generic
233K -rw-r--r-- 1 root root 233K Feb 17 10:07 config-5.4.0-96-generic
233K -rw-r--r-- 1 root root 233K Feb 17 10:07 config-5.4.0-97-generic
233K -rw-r--r-- 1 root root 233K Feb 17 09:31 config-5.4.0-99-generic
1.0K drwxr-xr-x 5 root root 1.0K Feb 17 11:47 grub
36M -rw-r--r-- 1 root root 36M Feb 17 10:07 initrd.img-5.4.0-97-generic
12K drwx------ 2 root root 12K Jun 20 2016 lost+found
4.6M -rw------- 1 root root 4.6M Feb 17 10:07 System.map-5.4.0-94-generic
4.6M -rw------- 1 root root 4.6M Feb 17 10:07 System.map-5.4.0-96-generic
4.6M -rw------- 1 root root 4.6M Feb 17 10:07 System.map-5.4.0-97-generic
4.6M -rw------- 1 root root 4.6M Feb 17 09:31 System.map-5.4.0-99-generic
14M -rw------- 1 root root 14M Feb 17 10:07 vmlinuz-5.4.0-97-generic

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