Skip to content

Commit

Permalink
lsinitramfs: mark modules as explicit in included list
Browse files Browse the repository at this point in the history
  • Loading branch information
falconindy committed May 16, 2011
1 parent e35b298 commit 9c4602b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions lsinitramfs
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit 9c4602b

Please sign in to comment.