diff options
author | Thomas Bächler <thomas@archlinux.org> | 2013-11-19 23:10:27 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-11-24 02:57:13 +0100 |
commit | 88129397a4f4c714195d2a100b851ecf7d0b0e85 (patch) | |
tree | db31e5855f727a4d4ee24a25a25bf0796f406d6a | |
parent | a15e5658875dd53856a59da64aa214b96871efa6 (diff) | |
download | mkinitcpio-88129397a4f4c714195d2a100b851ecf7d0b0e85.tar.gz mkinitcpio-88129397a4f4c714195d2a100b851ecf7d0b0e85.tar.xz |
mkinitcpio: Improve output when -d option is used.
-rwxr-xr-x | mkinitcpio | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |