summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2021-02-17Switch to zstd by defaultGiancarlo Razzolini4-13/+11
Since all the Arch kernels now support zstd, switch to it by default
2021-02-17Merge pull request #47 from cherti/masterGiancarlo Razzolini1-1/+1
Change explicit default for compression level of zstd
2021-01-30Remove explicit default for compression level of zstdJonas Große Sundrup1-1/+1
2021-01-07man/mkinitcpio.conf: Fix the copyrightGiancarlo Razzolini1-1/+1
The copyright was still pointing to 2019.
2021-01-07Merge branch 'fix_copyright'Giancarlo Razzolini3-3/+3
2021-01-07Fix the copyright date on README and man pagesGiancarlo Razzolini3-3/+3
The copyright date on the README and the man pages was still 2019. Fixed them to 2021.
2021-01-05Merge branch 'zstd_compression_level'Giancarlo Razzolini1-1/+1
2021-01-05mkinitcpio: Lower zstd compression level to 15Giancarlo Razzolini1-1/+1
After extensive testing, lowering the compression level to 15 seems to achieve a compression time on the ball park of gzip, while also having ~10% savings on top of it.
2021-01-05Merge branch 'Chocobo1-compression_opt'Giancarlo Razzolini1-3/+3
2020-10-30Allow user to override default compression optionsChocobo11-3/+3
2020-10-27Merge branch 'eworm-de-tmpfs'v29Giancarlo Razzolini1-0/+2
2020-10-27Merge branch 'tmpfs' of https://github.com/eworm-de/mkinitcpio into ↵Giancarlo Razzolini1-0/+2
eworm-de-tmpfs
2020-10-27Merge branch 'nl6720-nvdimm'Giancarlo Razzolini1-0/+3
2020-10-27Merge branch 'nvdimm' of https://github.com/nl6720/mkinitcpio into nl6720-nvdimmGiancarlo Razzolini1-0/+3
2020-10-27Merge branch 'sirlucjan-patch-1'Giancarlo Razzolini2-2/+2
2020-10-27Merge branch 'patch-1' of https://github.com/sirlucjan/mkinitcpio into ↵Giancarlo Razzolini2-2/+2
sirlucjan-patch-1
2020-10-27Merge branch 'tlahdekorpi-mmc'Giancarlo Razzolini1-1/+1
2020-10-27Merge branch 'mmc' of https://github.com/tlahdekorpi/mkinitcpio into ↵Giancarlo Razzolini1-1/+1
tlahdekorpi-mmc
2020-10-27Merge pull request #35 from luca020400/masterGiancarlo Razzolini5-2/+13
mkinitcpio: Add support for the zstd compressor
2020-10-08Switch to multi-threaded zstd compressorLuca Stefani1-1/+1
2020-09-21Merge remote-tracking branch 'upstream/master' into patch-1Piotr Gorski1-8/+30
2020-08-14mkinitcpio: Add support for the zstd compressorLuca Stefani5-2/+13
2020-07-16fsck: do not complain about missing helper for tmpfsChristian Hesse1-0/+2
Within a (build) chroot we may have root on tmpfs. There is no fsck helper for tmpfs, so do not complain. Signed-off-by: Christian Hesse <mail@eworm.de>
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-16install/block: include NVDIMM modulesnl67201-0/+3
This allows for booting from an ISO that was copied to a pmem device, such as '/dev/pmem0'. See also https://github.com/u-root/webboot/ . Co-authored-by: Daniel Maslowski <info@orangecms.org>
2020-07-06alpm-hooks should use Type = Path, not FilePiotr Gorski2-2/+2
Signed-off-by: Piotr Gorski <lucjan.lucjanov@gmail.com>
2020-05-20block: only include drivers/mmcTuomas Lähdekorpi1-1/+1
Filtering only by mmc pulls in media/mmc which would include modules and firmware for dvb.
2020-05-20Revert "[functions] Ignore modinfo built-in modules"Dave Reisner1-1/+1
As reported in https://github.com/archlinux/mkinitcpio/pull/20, this breaks various edge case involving builtins, leading to hardware-accelerated modules to not be added. This reverts commit 30dbfc2770cb49cb3babfb750205b126d7d88791.
2020-03-12Read from modules.builtin.modinfo if it existsDave Reisner1-8/+26
There's a lot more to be gained from reading this file -- builtins might have aliases which aren't available in the older modules.builtin index. Fixes FS#65725.
2020-03-12only add modules if the filename value looks like a pathDave Reisner1-5/+11
This is a defensive measure against the bug raised in FS#65725. While it does technically avoid the bug, it isn't IMO the proper fix. We'll address that in another patch.
2020-02-24Merge branch 'Foxboron-morten/fix-builtin'Giancarlo Razzolini1-1/+1
2020-02-24Merge branch 'morten/fix-builtin' of https://github.com/Foxboron/mkinitcpio ↵Giancarlo Razzolini1-1/+1
into Foxboron-morten/fix-builtin
2020-02-20[functions] Ignore modinfo built-in modulesMorten Linderud1-1/+1
modinfo have started reporting filenames as "(builtin)" on built-in modules. Ignore these and continue with other modules. Fixes: https://bugs.archlinux.org/task/65564 Introduced in: https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git/commit/?id=e7e2cb61fa9f1db3429d91ef6accff549500d268 Signed-off-by: Morten Linderud <morten@linderud.pw>
2020-01-20Merge branch 'dNhax-patch-1'Giancarlo Razzolini1-1/+1
2019-12-19Fix typodNhax1-1/+1
2019-10-29Merge branch 'alpm-hook'v27Giancarlo Razzolini6-1/+133
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-29Makefile: Add the remove hook and script to installGiancarlo Razzolini1-0/+2
Add the remove hook and remove script as part of the installation.
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-09Change the Makefile to reflect the change in the names of the hook and scriptGiancarlo Razzolini1-2/+2
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.