initramfs-tools: oops, add missing files required by the previous update.
This commit is contained in:
parent
86b729c508
commit
8865ec83fa
2 changed files with 98 additions and 0 deletions
51
srcpkgs/initramfs-tools/files/lsinitramfs
Executable file
51
srcpkgs/initramfs-tools/files/lsinitramfs
Executable file
|
@ -0,0 +1,51 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
echo "Usage: $(basename $0) <initramfs file>"
|
||||||
|
}
|
||||||
|
|
||||||
|
if [ "$#" -eq 0 ] ; then
|
||||||
|
usage >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
cpio_args="--extract --quiet --list"
|
||||||
|
|
||||||
|
OPTIONS=`getopt -o hl --long help,long -n "$0" -- "$@"`
|
||||||
|
# Check for non-GNU getopt
|
||||||
|
if [ $? != 0 ] ; then echo "W: non-GNU getopt" >&2 ; exit 1 ; fi
|
||||||
|
|
||||||
|
eval set -- "$OPTIONS"
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
case "$1" in
|
||||||
|
-h|--help)
|
||||||
|
usage
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
-l|--long)
|
||||||
|
cpio_args="${cpio_args:+${cpio_args} --verbose}"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
--)
|
||||||
|
shift
|
||||||
|
break
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Internal error!" >&2
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
for initramfs in "$@" ; do
|
||||||
|
if ! [ -r "${initramfs}" ] ; then
|
||||||
|
echo "Specified file could not be read." >&2
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "${initramfs}"
|
||||||
|
zcat "${initramfs}" | cpio ${cpio_args}
|
||||||
|
fi
|
||||||
|
done
|
47
srcpkgs/initramfs-tools/files/lsinitramfs.8
Normal file
47
srcpkgs/initramfs-tools/files/lsinitramfs.8
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
.TH LSINITRAMFS 8 "2010/06/16" "Linux" "lsinitramfs manual"
|
||||||
|
|
||||||
|
.SH NAME
|
||||||
|
lsinitramfs \- list content of an initramfs image
|
||||||
|
|
||||||
|
.SH SYNOPSIS
|
||||||
|
.B lsinitramfs
|
||||||
|
.RI [ options ] " <initramfsfile> " [ <initramfsfile> ]
|
||||||
|
.br
|
||||||
|
|
||||||
|
.SH DESCRIPTION
|
||||||
|
The
|
||||||
|
.B lsinitramfs
|
||||||
|
command lists the content of given initramfs images. It allows to quickly check
|
||||||
|
the content of one (or multiple) specified initramfs files.
|
||||||
|
|
||||||
|
.SH OPTIONS
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B -h
|
||||||
|
Display usage information and exit.
|
||||||
|
|
||||||
|
.TP
|
||||||
|
.B -l
|
||||||
|
Display long and more verbose listing of initramfs content.
|
||||||
|
|
||||||
|
.SH USAGE EXAMPLES
|
||||||
|
|
||||||
|
List initramfs content of current running kernel:
|
||||||
|
|
||||||
|
.PP
|
||||||
|
.B lsinitramfs /boot/initrd.img-$(uname -r)
|
||||||
|
|
||||||
|
List content of two initramfs files in verbose mode:
|
||||||
|
|
||||||
|
.PP
|
||||||
|
.B lsinitramfs -l /boot/vmlinuz-2.6.31-grml64 /boot/vmlinuz-2.6.33-grml64
|
||||||
|
|
||||||
|
.SH AUTHOR
|
||||||
|
The initramfs-tools are written by Maximilian Attems <maks@debian.org>
|
||||||
|
and numerous others.
|
||||||
|
|
||||||
|
.SH SEE ALSO
|
||||||
|
.BR
|
||||||
|
.IR initramfs-tools (8),
|
||||||
|
.IR mkinitramfs (8),
|
||||||
|
.IR update-initramfs (8).
|
Loading…
Reference in a new issue