summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-02-20 03:32:41 +0100
committerDave Reisner <dreisner@archlinux.org>2012-02-20 03:32:52 +0100
commita8beffd774be11956041997224878202d1aa970f (patch)
tree5646b83f946665c77f9cdf863adef6abb4ebcef1
parent838ffa831dca80e5578df0de9d6ac67d903c58c7 (diff)
downloadmkinitcpio-a8beffd774be11956041997224878202d1aa970f.tar.gz
mkinitcpio-a8beffd774be11956041997224878202d1aa970f.tar.xz
lsinitcpio: trim binaries during discovery
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xlsinitcpio6
1 files changed, 3 insertions, 3 deletions
diff --git a/lsinitcpio b/lsinitcpio
index 0fc8c67..02a87ca 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -105,8 +105,8 @@ if (( analyze )); then
kernver=${BASH_REMATCH[1]}
elif [[ $line = ./hooks/* ]]; then
foundhooks+=("${line##*/}")
- elif [[ $line = *@(/bin/|/sbin/)* ]]; then
- binaries+=("${line#.}")
+ elif [[ $line = *@(/?(s)bin/)* ]]; then
+ binaries+=("${line##*/}")
fi
done < <(decomp "$image" | bsdtar tf -)
@@ -144,7 +144,7 @@ if (( analyze )); then
fi
msg 'Included binaries:'
- printf ' %s\n' "${binaries[@]##*/}" | sort | column -c$columns
+ printf ' %s\n' "${binaries[@]}" | sort | column -c$columns
printf '\n'
if (( ${#hooks[*]} )); then