[arch-projects] [mkinitcpio][PATCH 19/19] lsinitcpio: add support for listing late hooks
Dave Reisner
dreisner at archlinux.org
Sun May 13 13:57:22 EDT 2012
The previous patch makes this quite simple, and we can easily catch
instances of run_latehook() for printing in the output.
Signed-off-by: Dave Reisner <dreisner at archlinux.org>
---
lsinitcpio | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/lsinitcpio b/lsinitcpio
index f33d9d3..fcb5199 100755
--- a/lsinitcpio
+++ b/lsinitcpio
@@ -181,6 +181,9 @@ if (( analyze )); then
run_hook)
hooks+=("$hook")
;;
+ run_latehook)
+ latehooks=("$hook" "${latehooks[@]}")
+ ;;
esac
done
done
@@ -215,10 +218,16 @@ if (( analyze )); then
printf '\n'
if (( ${#hooks[*]} )); then
- msg 'Hook run order:'
+ msg 'Early hook run order:'
printf ' %s\n' "${hooks[@]}"
printf '\n'
fi
+
+ if (( ${#latehooks[*]} )); then
+ msg 'Late hook run order:'
+ printf ' %s\n' "${latehooks[@]}"
+ printf '\n'
+ fi
else
decomp "$image" | bsdcpio -i --quiet $verbose $list
fi
--
1.7.10.2
More information about the arch-projects
mailing list