]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
add lsinitrd and mkinitrd man pages
authorHarald Hoyer <harald@redhat.com>
Tue, 3 Jul 2012 12:18:55 +0000 (14:18 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 3 Jul 2012 12:19:58 +0000 (14:19 +0200)
Makefile
dracut.spec
lsinitrd.1.asc [new file with mode: 0644]
mkinitrd.8.asc [new file with mode: 0644]

index 1d5531d0a700524b271b5ed9a940648f10745f05..78cf85d55e596ba625c301e196969dcb54c123f3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,12 @@ sysconfdir ?= ${prefix}/etc
 bindir ?= ${prefix}/bin
 mandir ?= ${prefix}/share/man
 
-manpages = dracut.8 dracut.cmdline.7 dracut.conf.5 dracut-catimages.8
+manpages = dracut.8 \
+          dracut.cmdline.7 \
+          dracut.conf.5 \
+          dracut-catimages.8 \
+          lsinitrd.1 \
+          mkinitrd.8
 
 .PHONY: install clean archive rpm testimage test all check AUTHORS doc
 
@@ -55,7 +60,7 @@ install: doc dracut-version.sh
        mkdir -p $(DESTDIR)$(bindir)
        mkdir -p $(DESTDIR)$(sysconfdir)
        mkdir -p $(DESTDIR)$(pkglibdir)/modules.d
-       mkdir -p $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man7 $(DESTDIR)$(mandir)/man8
+       mkdir -p $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man7 $(DESTDIR)$(mandir)/man8
        install -m 0755 dracut.sh $(DESTDIR)$(bindir)/dracut
        install -m 0755 dracut-catimages.sh $(DESTDIR)$(bindir)/dracut-catimages
        install -m 0755 mkinitrd-dracut.sh $(DESTDIR)$(bindir)/mkinitrd
@@ -68,8 +73,11 @@ install: doc dracut-version.sh
        install -m 0755 dracut-logger.sh $(DESTDIR)$(pkglibdir)/dracut-logger.sh
        install -m 0755 dracut-initramfs-restore.sh $(DESTDIR)$(pkglibdir)/dracut-initramfs-restore
        cp -arx modules.d $(DESTDIR)$(pkglibdir)
+       install -m 0644 lsinitrd.1 $(DESTDIR)$(mandir)/man1/lsinitrd.1
+       install -m 0644 mkdinitrd.8 $(DESTDIR)$(mandir)/man8/mkinitrd.8
        install -m 0644 dracut.8 $(DESTDIR)$(mandir)/man8/dracut.8
-       install -m 0644 dracut-catimages.8 $(DESTDIR)$(mandir)/man8/dracut-catimages.8
+       install -m 0644 dracut-catimages.8 \
+                        $(DESTDIR)$(mandir)/man8/dracut-catimages.8
        install -m 0644 dracut.conf.5 $(DESTDIR)$(mandir)/man5/dracut.conf.5
        install -m 0644 dracut.cmdline.7 $(DESTDIR)$(mandir)/man7/dracut.cmdline.7
        ln -s dracut.cmdline.7 $(DESTDIR)$(mandir)/man7/dracut.kernel.7
index 06d8139c90e438e25a054987848bc84934ebe6bd..b258121c11e9872808db09cf44ecc4bc1b464f17 100644 (file)
@@ -255,9 +255,11 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 %dir /etc/dracut.conf.d
 %{_mandir}/man8/dracut.8*
+%{_mandir}/man8/mkinitrd.8*
 %{_mandir}/man7/dracut.kernel.7*
 %{_mandir}/man7/dracut.cmdline.7*
 %{_mandir}/man5/dracut.conf.5*
+%{_mandir}/man1/lsinitrd.1*
 %{dracutlibdir}/modules.d/00bootchart
 %{dracutlibdir}/modules.d/00dash
 %{dracutlibdir}/modules.d/04watchdog
diff --git a/lsinitrd.1.asc b/lsinitrd.1.asc
new file mode 100644 (file)
index 0000000..5b0c62e
--- /dev/null
@@ -0,0 +1,43 @@
+LSINITRD(1)
+=========
+:doctype: manpage
+:man source:   dracut
+:man manual:   dracut
+
+NAME
+----
+lsinitrd - tool to show the contents of an initramfs image
+
+SYNOPSIS
+--------
+*lsinit* ['OPTION...'] [<image>]
+
+DESCRIPTION
+-----------
+lsinitrd shows the contents of an initramfs image. if <image> is omitted, then
+lsinitrd uses the default image /boot/initramfs-<kernel version>.img.
+
+OPTIONS
+-------
+**-h, --help**::
+    print a help message and exit.
+
+**-s, --size**::
+    sort the contents of the initramfs by size.
+
+AVAILABILITY
+------------
+The lsinitrd command is part of the dracut package and is available from
+link:$$https://dracut.wiki.kernel.org$$[https://dracut.wiki.kernel.org]
+
+AUTHORS
+-------
+Harald Hoyer
+
+Amerigo Wang
+
+Nikoli
+
+SEE ALSO
+--------
+*dracut*(8)
diff --git a/mkinitrd.8.asc b/mkinitrd.8.asc
new file mode 100644 (file)
index 0000000..2792915
--- /dev/null
@@ -0,0 +1,64 @@
+MKINITRD(8)
+=========
+:doctype: manpage
+:man source:   dracut
+:man manual:   dracut
+
+NAME
+----
+mkinitrd - is a compat wrapper, which calls dracut to generate an initramfs
+
+SYNOPSIS
+--------
+*mkinitrd* ['OPTION...'] [<initrd-image>]  <kernel-version>
+
+DESCRIPTION
+-----------
+mkinitrd creates an initramfs image <initrd-image> for the kernel with
+version <kernel-version> by calling "dracut".
+
+If a more fine grained control over the resulting image is needed,
+"dracut" should be called directly.
+
+OPTIONS
+-------
+**--version**::
+    print info about the version
+
+**-v, --verbose**::
+    increase verbosity level
+
+**-f, --force**::
+    overwrite existing initramfs file.
+
+**--image-version*::
+    append the kernel version to the target image
+    <initrd-image>-<kernel-version>.
+
+**--with=<module>**::
+     add the kernel module <module> to the initramfs.
+
+**--preload=<module>**::
+     preload the kernel module <module> in the initramfs before any other kernel
+     modules are loaded. This can be used to ensure a certain device naming, which
+     should in theory be avoided and the use of symbolic links in /dev is
+     encouraged.
+
+**--nocompress**::
+     do not compress the resulting image.
+
+**--help**::
+    print a help message and exit.
+
+AVAILABILITY
+------------
+The mkinitrd command is part of the dracut package and is available from
+link:$$https://dracut.wiki.kernel.org$$[https://dracut.wiki.kernel.org]
+
+AUTHORS
+-------
+Harald Hoyer
+
+SEE ALSO
+--------
+*dracut*(8)