summaryrefslogtreecommitdiffstats
path: root/libalpm/scripts
AgeCommit message (Collapse)AuthorFilesLines
2019-10-29libalpm/scripts: Add a remove scriptGiancarlo Razzolini1-0/+39
Add a remove script that cleans up kernels, images and presets upon kernel removals. It also handles mkinitcpio removal, by cleaning up presets.
2019-10-10Rework the install script a bit moreGiancarlo Razzolini1-9/+20
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.
2019-10-09Change the script to abort on errors and quote the glob on compgenGiancarlo Razzolini1-2/+2
2019-10-09Rework of the script to cover all casesGiancarlo Razzolini1-12/+26
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.
2019-10-09Rename of the hook and scriptGiancarlo Razzolini1-14/+0
2019-10-09Rework the script to create the preset and install the actual kernel to /bootGiancarlo Razzolini1-0/+19
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.
2019-10-09Add a mkinitcpio pacman scriptGiancarlo Razzolini1-0/+14
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.