Skip to content

Commit

Permalink
mkinitcpio: Improve output when -d option is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
brain0 authored and falconindy committed Nov 24, 2013
1 parent a15e565 commit 8812939
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions mkinitcpio
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ||
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8812939

Please sign in to comment.