]> git.ipfire.org Git - thirdparty/dracut.git/commit - lsinitrd.sh
lsinird: Adding option "-m|--mod" to list dracut modules in the image
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Mon, 2 Jun 2014 10:57:37 +0000 (16:27 +0530)
committerHarald Hoyer <harald@redhat.com>
Fri, 20 Jun 2014 12:34:30 +0000 (14:34 +0200)
commit05d2a14526042417a4a2b1b3d003738b51ab3df7
treeae6f9ce5c590376cf4bd710d3a1227ca31a3f63c
parent773d6a7ded0cc717ecfb7bed6e3f52ceedfb1834
lsinird: Adding option "-m|--mod" to list dracut modules in the image

This patch adds option "-m|--mod" to lsinitrd to list dracut
modules in the image  because sometimes  having an option to
only list the dracut modules in the image could be handy.

Sample output:
--------------

[hbathini@localhost dracut]$ sudo ./lsinitrd.sh initramfs-3.11.10-100.fc18.x86_64.img -m
Image: initramfs-3.11.10-100.fc18.x86_64.img: 33M
========================================================================
Version: dracut-029-1.fc18.2

dracut modules:
i18n
network
ifcfg
drm
plymouth
btrfs
crypt
dm
dmraid
kernel-modules
lvm
mdraid
cifs
iscsi
nfs
resume
rootfs-block
terminfo
udev-rules
biosdevname
systemd
usrmount
base
fs-lib
shutdown
========================================================================

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
lsinitrd.sh