You are not logged in.

#1 2024-08-04 08:48:18

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 36
Website

[Solved] Proper way to ask before auto dkms and mkinitcpio hook runs

Simple as that,I just want pacman  to ask before auto run dkms and raminitfs  hooks after each update of kernel or related package (systemd for example)
Is this feature included in libalpm ?

Last edited by Halano (2024-08-06 12:32:06)


.: HalanoSiblee The Smart Moth :.

Offline

#2 2024-08-04 10:08:09

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,995

Re: [Solved] Proper way to ask before auto dkms and mkinitcpio hook runs

No, and that's a design decision.

https://wiki.archlinux.org/title/Pacman#Hooks wrote:

Pacman hooks are not interactive.

If the conditions set for the hook are met, the hook will be run.

Pacman-contrib includes checkupdates .
Running that will allow you to see what updates there are without doing partial updates .
Just choose time/place when you do have resources to run pacman -Syu/dkms / initramfs rebuid etc.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-08-05 03:20:21

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 36
Website

Re: [Solved] Proper way to ask before auto dkms and mkinitcpio hook runs

Alright thanks (: , I mean it should be interactive for reasons like that but my problem is not big of deal ,I keep with the defaults.

Last edited by Halano (2024-08-05 03:20:48)


.: HalanoSiblee The Smart Moth :.

Offline

#4 2024-08-05 09:36:43

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 12,995

Re: [Solved] Proper way to ask before auto dkms and mkinitcpio hook runs

If you're satisfied with the answer, please prepend [Solved] to the thread title
(edit first post, you may have to shorten it a bit be able to add [Solved] )


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2024-08-05 10:10:43

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,319

Re: [Solved] Proper way to ask before auto dkms and mkinitcpio hook runs

why would you not want to run the dkms or mkinitcpio hooks when they are logically necessary? Do you want to abort the update because you can't take the time for it (as mentioned, checkupdates ahead of time, or reading the changed packages and aborting the -Syu to do it again at a more convenient time are the proper options here) or would you want to delay just the rebuilds until it's more convenient (which can and will have consequences of an unbootable system, if you forget to do it before rebooting)?

Offline

#6 2024-08-06 12:31:30

Halano
Member
From: Egypt
Registered: 2023-02-07
Posts: 36
Website

Re: [Solved] Proper way to ask before auto dkms and mkinitcpio hook runs

V1del wrote:

why would you not want to run the dkms or mkinitcpio

I've multiple kernel's with different initramfs and different modules
each one need it's own manual work
what pacman does it automatically run dksm install the modules for all detected kernels and auto build ramfs img
as I said before

Halano wrote:

my problem is not big of deal

I stick with the default for now,Thanks for help. 


.: HalanoSiblee The Smart Moth :.

Offline

Board footer

Powered by FluxBB