Blame 0024-add-lsinitrd-and-mkinitrd-man-pages.patch

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