Age | Commit message (Collapse) | Author | Files | Lines |
|
Changed the script to use -e for exiting in case of uncaught errors.
|
|
Add a remove script that cleans up kernels, images and presets upon kernel
removals. It also handles mkinitcpio removal, by cleaning up presets.
|
|
Add the remove hook and remove script as part of the installation.
|
|
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.
|
|
This hook triggers when a kernel is removed or when the mkinitcpio package itself is being
removed.
|
|
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.
|
|
mkinitcpio* package
Since not only mkinitcpio* packages touch /usr/lib/initcpio, switch the hook to triggering
on that.
|
|
|
|
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.
|
|
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.
|
|
|
|
|
|
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.
|
|
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.
|
|
This will be used by the pacman hook to create presets on the fly for new
kernels being installed based on pkgbase.
|
|
Changed the Makefile to properly install the pacman hook and script.
|
|
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.
|
|
This hook runs on mkinitcpio updates as well as on kernels containing the pkgbase
file on their modules directory. It calls the mkinitcpio script.
|
|
Added the hookdir flag to the parser and also added it to the completions.
|
|
|
|
|
|
|
|
|
|
|
|
falconindy-master
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
into Foxboron-morten/copyright
|
|
|
|
mkinitcpio: Produce reproducible initramfs images
|
|
|
|
We achieve this by stripping timestamps from within the filesystem,
and by using a pipeline to strip inodes from the cpio archive.
It functions for at least the 'gzip', 'xz', 'bzip2', 'lz4' and 'cat'
compressors. The 'lzop' compressor embeds a runtime timestamp.
Motivation: https://reproducible-builds.org
Signed-off-by: Daniel Edgecumbe <git@esotericnonsense.com>
|
|
Avoid over-optimizing autodetect and always add these. This allows
storage drivers to be builtins and still trigger addition of the block
node driver.
|
|
This might not strictly be strictly needed, but systemd documents it as
being a requirement, else it adds a var-run-bad taint flag.
|
|
These have been deprecated since 2012. I think that's enough time for
people to migrate.
|
|
|
|
|
|
Read time is constant between compression methods and we can't possibly
estimate this accurately since reading the image from disk doesn't
happen with kernel userland functions, but instead UEFI or 16-bit
realmode capabilities.
ref: https://bugs.archlinux.org/task/56417
|
|
Broken by c5ad00c2.
ref: https://bugs.archlinux.org/task/55870
|
|
|
|
Might be needed for ext4 filesystems formatted with the metadata_csum
option.
ref: https://bugs.archlinux.org/task/54091
|
|
Consistently handle hooks as symlinks by relying on the exit status of
readlink instead of an lstat and always, additionally, examine the hooks
basenames to ensure that we aren't warning about foo deprecating foo
(because the hook is a symlink to somewhere else that the hook is
actually stored on disk.
ref: https://bugs.archlinux.org/task/55323
|
|
ref: https://bugs.archlinux.org/task/54460
|
|
https://sourceware.org/git/?p=glibc.git;a=commit;h=eedca9772e99c72ab4c3c34e43cc764250aa3e3c
|
|
Add third argument to add_full_dir: strip_prefix.
The strip_prefix will be stripped off from the destination
path (path in the initramfs image) when adding files.
Rationale: Make it easier to add rootfs overlay hooks when
generating images.
add_full_dir can be invoked in this way:
add_full_dir /path/on/parent/rootfs-overlay * /path/on/parent/rootfs-overlay
The above invocation will add all content of */path/on/parent/rootfs-overlay*
into */* in the initramfs image.
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
|