diff options
| author | Michael Prokop <mika@debian.org> | 2010-06-14 11:11:42 +0200 |
|---|---|---|
| committer | Michael Prokop <mika@debian.org> | 2010-06-14 11:11:42 +0200 |
| commit | 2a8c9907b1095015e1d669d3cd895657936f6247 (patch) | |
| tree | 729973be1eebf296ca270d6e070816bb111ce187 /update-initramfs | |
| parent | e65ee485d9d6f257e70231669a13e05cc45acbb3 (diff) | |
| download | initramfs-tools-2a8c9907b1095015e1d669d3cd895657936f6247.tar.gz initramfs-tools-2a8c9907b1095015e1d669d3cd895657936f6247.zip | |
hook-functions/mkinitramfs/update-initramfs: consequently output error messages to stderr
Signed-off-by: Michael Prokop <mika@debian.org>
Diffstat (limited to 'update-initramfs')
| -rwxr-xr-x | update-initramfs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/update-initramfs b/update-initramfs index f8408e6..53ebed2 100755 --- a/update-initramfs +++ b/update-initramfs @@ -170,7 +170,7 @@ generate_initramfs() # minversion wasn't met, exit 0 exit 0 fi - echo "update-initramfs: failed for ${initramfs}" + echo "update-initramfs: failed for ${initramfs}" >&2 exit $mkinitramfs_return fi } @@ -180,7 +180,7 @@ run_lilo() { # show lilo errors on failure if ! lilo -t > /dev/null 2>&1 ; then - echo "ERROR lilo fails for new ${initramfs}:" + echo "ERROR lilo fails for new ${initramfs}:" >&2 echo lilo -t fi @@ -460,7 +460,7 @@ while getopts "k:cudyvtb:h?" flag; do b) BOOTDIR="${OPTARG}" if [ ! -d "${BOOTDIR}" ]; then - echo "Error: ${BOOTDIR} is not a directory." + echo "Error: ${BOOTDIR} is not a directory." >&2 exit 1 fi ;; @@ -473,7 +473,7 @@ done shift $((${OPTIND} - 1)) if [ $# -ne 0 ]; then - echo "Invalid argument for option -k." + echo "Invalid argument for option -k." >&2 usage fi |
