|
Harald Hoyer |
f97365 |
From 143420bc05079ffa040a63decbb2585c59e44011 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
f97365 |
From: Kairui Song <kasong@redhat.com>
|
|
Harald Hoyer |
f97365 |
Date: Wed, 25 Jul 2018 23:50:47 +0800
|
|
Harald Hoyer |
f97365 |
Subject: [PATCH] lsinitrd: update help message and man page
|
|
Harald Hoyer |
f97365 |
|
|
Harald Hoyer |
f97365 |
Signed-off-by: Kairui Song <kasong@redhat.com>
|
|
Harald Hoyer |
f97365 |
---
|
|
Harald Hoyer |
f97365 |
lsinitrd.1.asc | 6 ++++++
|
|
Harald Hoyer |
f97365 |
lsinitrd.sh | 3 +++
|
|
Harald Hoyer |
f97365 |
2 files changed, 9 insertions(+)
|
|
Harald Hoyer |
f97365 |
|
|
Harald Hoyer |
f97365 |
diff --git a/lsinitrd.1.asc b/lsinitrd.1.asc
|
|
Harald Hoyer |
f97365 |
index b6a704c2..193a4471 100644
|
|
Harald Hoyer |
f97365 |
--- a/lsinitrd.1.asc
|
|
Harald Hoyer |
f97365 |
+++ b/lsinitrd.1.asc
|
|
Harald Hoyer |
f97365 |
@@ -34,11 +34,17 @@ OPTIONS
|
|
Harald Hoyer |
f97365 |
**-k, --kver** _<kernel version>_::
|
|
Harald Hoyer |
f97365 |
inspect the initramfs of <kernel version>.
|
|
Harald Hoyer |
f97365 |
|
|
Harald Hoyer |
f97365 |
+**-m, --mod**::
|
|
Harald Hoyer |
f97365 |
+ list dracut modules included of the initramfs image.
|
|
Harald Hoyer |
f97365 |
+
|
|
Harald Hoyer |
f97365 |
**--unpack**::
|
|
Harald Hoyer |
f97365 |
unpack the initramfs to the current directory, instead of displaying the contents.
|
|
Harald Hoyer |
f97365 |
+ If optional filenames are given, will only unpack specified files, else the whole image will be unpacked.
|
|
Harald Hoyer |
f97365 |
+ Won't unpack anything from early cpio part.
|
|
Harald Hoyer |
f97365 |
|
|
Harald Hoyer |
f97365 |
**--unpackearly**::
|
|
Harald Hoyer |
f97365 |
unpack the early microcode initramfs to the current directory, instead of displaying the contents.
|
|
Harald Hoyer |
f97365 |
+ Same as --unpack, but only unpack files from early cpio part.
|
|
Harald Hoyer |
f97365 |
|
|
Harald Hoyer |
f97365 |
**-v, --verbose**::
|
|
Harald Hoyer |
f97365 |
unpack verbosely
|
|
Harald Hoyer |
f97365 |
diff --git a/lsinitrd.sh b/lsinitrd.sh
|
|
Harald Hoyer |
f97365 |
index 0cb89e9c..a2fa4d7a 100755
|
|
Harald Hoyer |
f97365 |
--- a/lsinitrd.sh
|
|
Harald Hoyer |
f97365 |
+++ b/lsinitrd.sh
|
|
Harald Hoyer |
f97365 |
@@ -28,7 +28,10 @@ usage()
|
|
Harald Hoyer |
f97365 |
echo "-m, --mod list modules."
|
|
Harald Hoyer |
f97365 |
echo "-f, --file <filename> print the contents of <filename>."
|
|
Harald Hoyer |
f97365 |
echo "--unpack unpack the initramfs, instead of displaying the contents."
|
|
Harald Hoyer |
f97365 |
+ echo " If optional filenames are given, will only unpack specified files,"
|
|
Harald Hoyer |
f97365 |
+ echo " else the whole image will be unpacked. Won't unpack anything from early cpio part."
|
|
Harald Hoyer |
f97365 |
echo "--unpackearly unpack the early microcode part of the initramfs."
|
|
Harald Hoyer |
f97365 |
+ echo " Same as --unpack, but only unpack files from early cpio part."
|
|
Harald Hoyer |
f97365 |
echo "-v, --verbose unpack verbosely."
|
|
Harald Hoyer |
f97365 |
echo "-k, --kver <kernel version> inspect the initramfs of <kernel version>."
|
|
Harald Hoyer |
f97365 |
echo
|
|
Harald Hoyer |
f97365 |
|