Age | Commit message (Collapse) | Author | Files | Lines |
|
Add a remove script that cleans up kernels, images and presets upon kernel
removals. It also handles mkinitcpio removal, by cleaning up presets.
|
|
Added comments to make the flow more understandable. We now actively bail when
we encounter a kernel with no pkgbase. Also, if the preset does not exist yet,
and there is a .pacsave, we move that instead of copying from the template. Move
the preset check alongside the check if all was passed and finally, check if the
args array is not empty, before trying to run mkinitcpio.
|
|
|
|
The script did not work properly for the cases where more than one kernel was being
installed, or only when mkinitcpio without a kernel is installed. Now the script runs
properly on all cases.
|
|
|
|
The script now will use a prepared preset to create presets when new kernels are installed.
It will also always copy the vmlinuz kernel to /boot.
|
|
This script runs on mkinitcpio package updates as well as on kernel updates that
have the pkgbase file on their modules directory. It will use the contents of that
file to determine which preset to run or, in case not pkgbase file is passed to it,
it will run all presets with -P.
|