summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2013-11-19 23:10:27 +0100
committerDave Reisner <dreisner@archlinux.org>2013-11-24 02:57:13 +0100
commit88129397a4f4c714195d2a100b851ecf7d0b0e85 (patch)
treedb31e5855f727a4d4ee24a25a25bf0796f406d6a
parenta15e5658875dd53856a59da64aa214b96871efa6 (diff)
downloadmkinitcpio-88129397a4f4c714195d2a100b851ecf7d0b0e85.tar.gz
mkinitcpio-88129397a4f4c714195d2a100b851ecf7d0b0e85.tar.xz
mkinitcpio: Improve output when -d option is used.
-rwxr-xr-xmkinitcpio10
1 files changed, 7 insertions, 3 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 30cff6a..e927884 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -440,9 +440,7 @@ if (( _optshowautomods )); then
cleanup 0
fi
-if [[ -z $_optgenimg ]]; then
- msg "Starting dry run: %s" "$KERNELVERSION"
-else
+if [[ $_optgenimg ]]; then
# check for permissions. if the image doesn't already exist,
# then check the directory
if [[ ( -e $_optgenimg && ! -w $_optgenimg ) ||
@@ -456,6 +454,10 @@ else
fi
msg "Starting build: %s" "$KERNELVERSION"
+elif [[ $_opttargetdir ]]; then
+ msg "Starting build: %s" "$KERNELVERSION"
+else
+ msg "Starting dry run: %s" "$KERNELVERSION"
fi
# set functrace and trap to catch errors in add_* functions
@@ -494,6 +496,8 @@ ldconfig -r "$BUILDROOT" &>/dev/null
if [[ $_optgenimg ]]; then
build_image "$_optgenimg" "$_optcompress"
+elif [[ $_opttargetdir ]]; then
+ msg "Build complete."
else
msg "Dry run complete, use -g IMAGE to generate a real image"
fi