Permalink
Browse files

lsinitramfs: mark modules as explicit in included list

  • Loading branch information...
1 parent e35b298 commit 9c4602b0e553272eb21c05997fea3c5b8dc5fc51 @falconindy committed May 16, 2011
Showing with 5 additions and 7 deletions.
  1. +5 −7 lsinitramfs
View
@@ -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

0 comments on commit 9c4602b

Please sign in to comment.