From 9c4602b0e553272eb21c05997fea3c5b8dc5fc51 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 15 May 2011 23:02:09 -0400 Subject: [PATCH] lsinitramfs: mark modules as explicit in included list --- lsinitramfs | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lsinitramfs b/lsinitramfs index 2a2ccc0..5ef485f 100755 --- a/lsinitramfs +++ b/lsinitramfs @@ -138,7 +138,11 @@ if (( analyze )); then printf '\n' printf '==> Included modules:\n' - printf ' %s\n' "${modules[@]}" + for mod in "${modules[@]}"; do + printf ' %s' "$mod" + in_array "${mod//_/-}" "${explicitmod[@]//_/-}" && printf ' [explicit]' + printf '\n' + done printf '\n' printf '==> Included binaries:\n' @@ -150,12 +154,6 @@ if (( analyze )); then printf ' %s\n' "${hooks[@]}" printf '\n' fi - - if (( ${#explicitmod[*]} )); then - printf '==> Explicitly loaded modules:\n' - printf ' %s\n' "${explicitmod[@]}" - printf '\n' - fi else bsdcpio -i --quiet $verbose $list <"$image" fi