summaryrefslogtreecommitdiffstats
path: root/libalpm
AgeCommit message (Collapse)AuthorFilesLines
2020-09-21Merge remote-tracking branch 'upstream/master' into patch-1Piotr Gorski1-8/+30
2020-07-16libalpm/scripts/mkinitcpio-remove: Added the patch for the pacsave functionalityv28Giancarlo Razzolini1-8/+30
When removing kernels, detect if the preset was changes and save it as a .pacsave, instead of removing it.
2020-07-06alpm-hooks should use Type = Path, not FilePiotr Gorski2-2/+2
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
2019-10-29mkinitcpio-remove: Fix the script to use -eGiancarlo Razzolini1-1/+1
Changed the script to use -e for exiting in case of uncaught errors.
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-29libalpm/hooks: Change the remove hook to PreTransaction and also match on ↵Giancarlo Razzolini1-1/+2
mkinitcpio-git. Since the hook actually needs to be able to match on a kernel pkgbase, it needs to be ran PreTransaction and not Post. Also add an additional target on mkinitcpio-git, to aid development.
2019-10-15Add a remove hookGiancarlo Razzolini1-0/+15
This hook triggers when a kernel is removed or when the mkinitcpio package itself is being removed.
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-10Change the install hook to trigger on usr/lib/initcpio/* instead of ↵Giancarlo Razzolini1-6/+1
mkinitcpio* package Since not only mkinitcpio* packages touch /usr/lib/initcpio, switch the hook to triggering on that.
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-09Changed the trigger to vmlinuzGiancarlo Razzolini1-1/+1
All the kernels install the kernel to the file vmlinuz, so triggering on it makes more sense. The pkgbase file is still used on the script.
2019-10-09Rename of the hook and scriptGiancarlo Razzolini2-31/+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-09Change the hook name and change the name of the script called by itGiancarlo Razzolini1-0/+17
The hook was renamed to reflect it will be triggered only on install (or upgrades). This is because we will have a hook/script pair running on kernels removals as well.
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.
2019-10-09Add a new mkinitcpio pacman hookGiancarlo Razzolini1-0/+17
This hook runs on mkinitcpio updates as well as on kernels containing the pkgbase file on their modules directory. It calls the mkinitcpio script.