41 Commits

Author SHA1 Message Date
Benjamin Drung
716491a8ce mkinitramfs: add --version parameter 2025-03-24 11:30:24 +01:00
Alper Nebi Yasak
a89788e09c mkinitramfs: Add -m argument to override MODULES setting
We shouldn't need to change the system configuration to test changes to
initramfs-tools. It's possible to use the -d argument with a custom
config directory this purpose, but testing different MODULES settings is
necessary frequently enough that it deserves its own shortcut. Add a -m
argument to mkinitramfs that overrides the MODULES setting.

Signed-off-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
2024-07-09 22:54:30 +03:00
Rich Ercolani
50d945acb8 Add support for specifying compression level
Added a COMPRESSLEVEL parameter to initramfs.conf, a -l flag to
mkinitramfs, and updated initramfs.conf.5 and mkinitramfs.8 to match.

Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
2022-06-20 12:38:33 -04:00
Ben Hutchings
94e05dd4c4 unmkinitramfs(8): Abbreviate synopsis to avoid wrapping
Instead of listing all the options, only mention -o (which is non-
optional) and show that other options can be included.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-02-06 03:37:11 +00:00
Ben Hutchings
fc81f7f5f0 mkinitramfs: Support -h and --help options
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-02-06 03:37:04 +00:00
Ben Hutchings
4d57f637a9 mkinitramfs(8), update-initramfs(8): Fix over-indentation of options
When using inline markup, all whitespace is significant, so these
options had an extra space in front of them.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-02-06 03:30:06 +00:00
Ben Hutchings
b8d3d5968c Remove descriptions of removed/deprecated options from man page synopsises
I already these options from the Options sections but forgot the
Synopsis.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2019-02-06 02:29:49 +00:00
Ben Hutchings
9bd960e4d7 docs: Set man page header source and manual parameters correctly
Set the .TH source parameter for all pages to "initramfs-tools".
Set the .TH manual parameter to a commonly used name for the man page
section.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-07-18 23:38:23 +01:00
Ben Hutchings
562d86ef33 docs: Update man page header dates
Set each page's date to the date of the last substantive
change, i.e. excluding cross-reference updates and spelling fixes.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-07-18 23:38:14 +01:00
Ben Hutchings
63cec7bb02 docs: Move initramfs-tools man page to section 7
Manual pages that describe a general topic belong in section 7, not 8.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-07-18 23:36:57 +01:00
Ben Hutchings
ecd6ce233f mkinitramfs(8), hook-functions: Correct references to "ramdisk"
An initramfs image is not a ramdisk, even though it is passed to the
kernel in the same way as an initrd.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-07-18 22:15:00 +01:00
Ben Hutchings
8bddfe46b4 mkinitramfs(8): Remove description of nonexistent options
The --supported-{host,target}-version option were only supported by
mkinitramfs-kpkg, which was removed in version 0.99.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-07-18 22:15:00 +01:00
Ben Hutchings
f1cbe6f18c mkinitramfs: Build reproducible images when SOURCE_DATE_EPOCH is set
[bwh: Resolved conflicts with lz4 support and updated Depends]
Closes: #845034
Thanks: Chris Lamb <lamby@debian.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-07-18 22:14:44 +01:00
Kevin Locke
f1f18a44fd Create unmkinitramfs command
This command supports extracting files from an initramfs image.  It is
designed to be a drop-in for cpio wherever an initramfs may be present.

It is implemented using the code from lsinitramfs, which now delegates
to uninitramfs instead of cpio.

Signed-off-by: Kevin Locke <kevin@kevinlocke.name>
[bwh: Rename it from uninitramfs to unmkinitramfs; add to .install list]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2016-12-15 21:49:33 +00:00
Ben Hutchings
35bdb74195 Refer to lsinitramfs(8) from {initramfs-tools,mkinitramfs,update-initramfs}(8)
While we're at it, fix the rendering of 'mkinitramfs(8)' in
initramfs-tools(8).

Closes: #764020
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2014-10-16 16:30:23 +02:00
Ben Hutchings
9c8bde8a8c mkinitramfs.8: Update default temporary directory
We changed the default from /tmp to /var/tmp in 0.100.

Closes: #764388
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2014-10-16 15:06:57 +02:00
Michael Prokop
adce374416 docs: fix wording ("allows *one* to") to make lintian happy.
Signed-off-by: Michael Prokop <mika@debian.org>
2011-05-11 23:56:44 +02:00
Axel Beckert
ea5eae1806 mkinitramfs.8: Add information about $TMPDIR environment variable
This documents problem with noexec mount options and fixes:

BTW: The information about mkinitramfs looking at $TMPDIR is missing in
the mkinitramfs(8) man page. Looked there (mostly for commandline
options) before reporting that bug. But even searching for "TMP" in
there now didn't find any hint on that.

[ s/must/should/, date ]
Signed-off-by: maximilian attems <maks@debian.org>
2010-04-07 02:24:53 +02:00
Bert Schulze
fe7e630857 mkinitramfs: -c compression support / commandline override
fixed the commandline argument to select the compressor.

also your test with "command" needed to be negated otherwise the
fallback to gzip would take place everytime.

--
frohe ostern
Bert Schulze

[ nuked trailing whitespace, and add comment for usage() ]
Signed-off-by: maximilian attems <maks@debian.org>
2010-04-04 18:02:02 +02:00
maximilian attems
0164c63083 mkinitramfs.8: update date
forgot to add here on compress commit.
2010-04-04 17:25:12 +02:00
bert schulze
38c90c536d initramfs-tools: support different compression tools in mkinitramfs
this version uses /etc/initramfs-tools/initramfs.conf to determine
the compression method, checks kernel and userspace support with
fallback to gzip. Since LZO didnt work for me at all with 2.6.33
I left that out for now.

(closes: #533903)

[ minor changes in mkinitramfs code ]
Signed-off-by: maximilian attems <maks@debian.org>
2010-04-04 05:50:34 +02:00
maximilian attems
6966048d94 manpages: Set Linux as necessary OS.
thanks to jidanni@jidanni.org for pointing out the missed field.
2008-12-19 14:25:48 +01:00
maximilian attems
07d29f7d0b mkinitramfs: Fix usage and man outfile arg is not optional.
Thanks to Jens Seidel <jensseidel@users.sf.net>
(closes: #493238)
2008-08-12 10:52:25 +02:00
maximilian attems
0d2613de43 doc: fix date string of manual pages.
thanks to jidanni@jidanni.org

Signed-off-by: maximilian attems <maks@debian.org>
2008-07-04 00:10:14 +02:00
maximilian attems
788877833d mkinitramfs.8: Document verbose mode.
Strange forgot about the interface almost as not seen in manpage..
2007-08-08 19:09:35 +02:00
maximilian attems
b65e2e8143 mkinitramfs.8: improve docs
* add example section

* be more explicit that update-initramfs is a wrapper around mkinitramfs
  and what it does
2007-05-01 18:49:42 +02:00
maximilian attems
adda784dc1 minor cleanups to get 0.87 ready:
- add changelog entries to david changes
- change to my new debian.org email adresses in manpages too
- module list is alphabetic
2007-04-16 20:05:00 +02:00
maximilian attems
c4343742b3 first prerelease 0.86 + merge 0.85f
* kick mdrun script
* update control for lenny + ubuntu
* add _all_ ide, block and drivers
* use MODPROBE_OPTIONS and kill any modprobed arg
* small doc + whitespace fixes
2007-04-02 13:29:25 +02:00
maximilian attems
849c7c5f29 - add backup handling to initramfs-tools
- allow conservative settings for skipping updated initramfs.
- debug output to screen
- parse mbr for lilo
+ small fixes
2006-10-13 08:52:12 +02:00
maximilian attems
659764e8cd - really remove hooks/lvm
- mkinitramfs: fix conf.d handling, thanks to vagrant patch
- mkinitramfs.8: document conf.d usage
2006-08-12 09:44:49 +02:00
maximilian attems
8761821795 - add BUSYBOX section to conf
- add myri10ge, smc911x and hptiop modules
- fix check_minkver() logic
- escape resume variables
- fix SEE ALSO section in all manpages
- source /usr/share/initramfs-tools/conf.d/* 
- check against modules.dep before running depmod
- more verbose output
- open console with -i for dash interactive
- fix resume param by LABEL or UUID
- lvm has new prereq mdadm
- update-initramfs fix -v calling
- functions/scripts replace basename usage with shell expansion
2006-07-24 09:13:28 +02:00
maximilian attems
17d01b3434 massif whitespace cleanup 2006-07-16 21:54:14 +02:00
maximilian attems
0754335a68 rephrase docs
remove cp modules from postinstall, install confdir
lots of small polishing thanks to Sesse review
don't use touch on init
2006-06-22 20:50:14 +02:00
maximilian attems
02b32f0a24 - mv /etc/mkinitramfs /etc/initramfs-tools
upgrade handling on preinst
- update TODO
- update bug script
2006-05-20 12:14:44 +02:00
maximilian attems
aad10a3ce2 * fix minor parsing
* add linear module
* manpage polishing
* udev_helper needs some conf sourced
2006-03-18 09:24:43 +01:00
maximilian attems
0d19ff751e add kernel-package compat stuff, behaves like mkinitramfs and adds
an sha1sum for update-initramfs.

is meant for etch release, hope we get rid afterwards.
will allow to clean up mkinitramfs from the longoption calls.
2006-02-17 21:43:38 +01:00
maximilian attems
b3fcee3438 better document the point of update-initramfs and mkinitramfs. 2006-02-14 11:22:50 +01:00
maximilian attems
6ee91456c2 add initramfs-tools.8
update manpage crossreferences
2005-12-06 10:34:22 +01:00
maximilian attems
17fed79e0d merge the thing waldi uploaded as 0.32.
it has the changes vorlon asked for so that 2.4 systems
that use the ramdisk value in /etc/kernel-img.conf don't use the wrong tool.
2005-10-24 08:44:19 +02:00
maximilian attems
60d4c3a0af fix man reference 2005-09-19 15:09:06 +02:00
Jeff Bailey
baab5f5fc3 Cleanup commit, sorry for the mess 2005-08-16 13:34:37 -04:00