Commit Graph

31 Commits

Author SHA1 Message Date
Štěpán Němec db69430e5b doc: clarify argument expected for --cmdline
I had to check the code to make sure it really has to be a file, and
not e.g. (also) a literal command line string. Make that clearer in
the option descriptions.

Signed-off-by: Štěpán Němec <stepnem@gmail.com>
2021-08-27 22:48:24 +02:00
Štěpán Němec 4105ac3a03 man: fix some typos
Signed-off-by: Štěpán Němec <stepnem@gmail.com>
2021-08-26 12:03:48 +02:00
Morten Linderud e14d024d4f
mkinitcpio: remove short options, restructure docs and help
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-07-06 00:28:35 +02:00
Morten Linderud 34be8f70d5
man/mkinitcio.8: Added examples to the manpage
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-04-12 00:21:52 +02:00
Morten Linderud 4e9d26390c
fixup! Added manpage
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-04-12 00:21:52 +02:00
Morten Linderud 70eb8a50e3
Added manpage
Signed-off-by: Morten Linderud <morten@linderud.pw>
2021-04-12 00:21:52 +02:00
Giancarlo Razzolini 2f4a2b592f
Switch to zstd by default
Since all the Arch kernels now support zstd, switch to it by default
2021-02-16 23:34:00 -03:00
Giancarlo Razzolini 55e6ce3d33
man/mkinitcpio.conf: Fix the copyright
The copyright was still pointing to 2019.
2021-01-07 14:46:02 -03:00
Giancarlo Razzolini d0d7528d84
Fix the copyright date on README and man pages
The copyright date on the README and the man pages was still 2019. Fixed
them to 2021.
2021-01-07 14:40:04 -03:00
Luca Stefani 852917d99c mkinitcpio: Add support for the zstd compressor 2020-08-14 15:54:10 +02:00
Giancarlo Razzolini 60713cf838
* Fix whitespace 2019-10-04 14:29:17 -03:00
Morten Linderud 66ab66ebcc
Add flag to specify where to look for hooks. 2019-10-04 14:29:17 -03:00
Giancarlo Razzolini 9120dabfb0
Merge branch 'morten/copyright' of https://github.com/Foxboron/mkinitcpio into Foxboron-morten/copyright 2019-09-15 23:00:35 -03:00
Morten Linderud ec1b6f789b
Updated copyright year 2019-09-10 22:57:22 +02:00
Daniel Edgecumbe ca8f13e11d 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>
2019-09-09 15:49:41 +01:00
Erik Stromdahl 172ca64452 functions: add_full_dir: path prefix strip-off
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>
2017-08-20 16:40:27 -04:00
Dave Reisner c5ad00c2e5 arrayize config vars in mkinitcpio.conf
allows for backwards compat by detecting and converting old-style
string-based configs.
2017-03-19 15:14:47 -04:00
Dave Reisner 2e79b928b9 mkinitcpio(8): document rootflags= and rootfstype=
These were curiously omitted from the documentation.

ref: https://bugs.archlinux.org/task/50470
2016-09-09 08:29:03 -04:00
Dave Reisner d73d34e017 error out if asked to extract a kver from image on non-x86
Version extraction only works on x86 (i686 and x86_64) kernels.

ref: https://bugs.archlinux.org/task/43256
2016-07-02 15:18:11 -04:00
Dave Reisner 02d387b237 add second param to add_full_dir to allow filtering files
Use this to only add files matching *.conf in the modconf hook.

Fixes FS#39994.
2014-06-21 12:38:22 -04:00
Dave Reisner d88deaadc5 mkinitcpio.8: add reference to bootparam(7) 2014-03-08 13:24:01 -05:00
Dave Reisner 4d0d81aacf remove legacy search paths in /lib/initcpio 2013-12-01 11:43:31 -05:00
Dave Reisner 0ccd0bcf04 Load build and run hooks from /etc/initcpio
This lets users shoot themselves in the foot more easily, as they can
put their own modified hooks into /etc/initcpio/{hooks,install} to
override those shipped by the distro in /usr/lib/initcpio.

To make debugging easier, include the full path of the hook being used
when mkinitcpio runs in verbose mode.

Implements FS#37796.
2013-12-01 11:43:00 -05:00
Thomas Bächler cf9be93525 mkinitcpio: Allow building an image without modules
The '-k none' switch prevents mkinitcpio from adding modules to the
image and keeps it from bailing out when it cannot find any.
2013-11-27 15:21:13 -05:00
Dave Reisner a15e565887 mkinitcpio.8: document -d, --generatedir
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-11-23 20:57:13 -05:00
Dave Reisner 45f1768935 mkinitcpio.conf(5): mention lz4 compression
Since b5927393d1, mkinitcpio acknowledges that lz4 exists.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-09-25 08:46:50 -04:00
Dave Reisner c61d4791d3 init: allow for logging of early userspace
This introduces support for the rd.log and rd.debug kernel command line
options, which log early userspace activity to /run/initramfs/init.log.

Code is largely inspired by Dracut's implementation of early userspace
logging, but without needless complexity and redundancies.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-06-25 17:16:41 -04:00
Dave Reisner 85ae2bcd44 Add -P, --allpresets option
As a logical extension, allow the -p option to be specified multiple
times in order to process several presets at once.

Original-patch-by: Sébastien Luttringer <seblu@seblu.net>
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-02-04 20:21:52 -05:00
Dave Reisner 1257d537a3 mkinitcpio.8: we support PARTLABEL too
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2013-01-18 13:29:15 -05:00
Dave Reisner 62ddaa6ea0 mkinitcpio.8: fix add_runscript doc to match reality
This function no longer expects an argument.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-11-30 09:12:27 -05:00
Dave Reisner 3c961b3bc3 build: move manpages to subdir
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2012-11-23 18:01:34 -05:00