diff options
author | Michael Prokop <mika@debian.org> | 2014-08-30 17:08:42 -0700 |
---|---|---|
committer | Michael Prokop <mika@debian.org> | 2014-08-30 17:28:42 -0700 |
commit | ebeffcd69d175ba7fe4d08b4311a934811ac89cc (patch) | |
tree | 3b7bbb7239285255e450c9d6dea226ce18e48c5f /lsinitramfs | |
parent | a5126cfec2ec79c1e2bdccc435fdd20dd2ba2c13 (diff) |
Inform user that lsinitramfs doesn't support cpio archives yet
Thanks: Javier Barroso <javibarroso@gmail.com> for the initial patch
Related-to: #717805
Diffstat (limited to 'lsinitramfs')
-rwxr-xr-x | lsinitramfs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lsinitramfs b/lsinitramfs index f4e78c1..f66d970 100755 --- a/lsinitramfs +++ b/lsinitramfs @@ -54,6 +54,9 @@ for initramfs in "$@" ; do bzip2 -c -d "$initramfs" | cpio ${cpio_args} elif lzop -t "$initramfs" >/dev/null 2>&1 ; then lzop -c -d "$initramfs" | cpio ${cpio_args} + elif file "$initramfs" 2>/dev/null | grep -q "cpio archive" ; then + echo "lsinitramfs does not yet support cpio archive initramfs files." >&2 + echo "See http://bugs.debian.org/717805 for more information." >&2 fi fi |