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

Blocklist wildcard #85

Open
Perkka2 opened this issue Dec 12, 2022 · 2 comments
Open

Blocklist wildcard #85

Perkka2 opened this issue Dec 12, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Perkka2
Copy link

Perkka2 commented Dec 12, 2022

Use Case

It would be good to be able to use wildcards in the blocklist, i have a package where i need to do some manual work when the kernel is updated, i would like to block the kernel updates from being updated.

The problem on atleast debian is that the package for the kernel image is linux-image-[version-number]
i have thus no way currentlyt to add the kernel to the block list to be able to manually update it later.

I would like to be able to add kernel-image-* to the blocklist

@Perkka2 Perkka2 added the enhancement New feature or request label Dec 12, 2022
@kreeuwijk
Copy link
Contributor

Due to how comparison of Array members works in the Puppet language, this is not so easy to accomplish. There's also a risk of unexpected behavior when trying to automatically construct regex comparison expressions from text-based strings with wildcard characters.

Instead, you could tell Puppet to mark this package as hold so that it will not try to update it:

package { "linux-image-${facts['kernelrelease']}":
  mark => 'hold',
}

@Perkka2
Copy link
Author

Perkka2 commented Dec 19, 2022

I wish that would've worked, but marking the current kernel as hold does not stop it from wanting to install newer kernels.
So the feature would still be nice to have.

I ended up with writing a script that upon reboot after patching installed kernel headers, manually compiling the extra modules i needed and modprobing them.

Another thing that i kind of need that's also related to this issue is, adding packages to some kind of wait list.
Where the package waits for a specified amount of days/weeks before being installed. and this would also need to have wildcard support because of the kernel naming.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants