summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authorMichael Prokop <mika@debian.org>2010-06-14 11:11:42 +0200
committerMichael Prokop <mika@debian.org>2010-06-14 11:11:42 +0200
commit2a8c9907b1095015e1d669d3cd895657936f6247 (patch)
tree729973be1eebf296ca270d6e070816bb111ce187 /hook-functions
parente65ee485d9d6f257e70231669a13e05cc45acbb3 (diff)
downloadinitramfs-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 'hook-functions')
-rw-r--r--hook-functions22
1 files changed, 11 insertions, 11 deletions
diff --git a/hook-functions b/hook-functions
index 0a6c9b7..f5da1c4 100644
--- a/hook-functions
+++ b/hook-functions
@@ -220,16 +220,16 @@ dep_add_modules()
# require mounted sysfs
if [ ! -d /sys/devices/ ]; then
- echo "mkinitramfs: MODULES dep requires mounted sysfs on /sys"
+ echo "mkinitramfs: MODULES dep requires mounted sysfs on /sys" >&2
exit 1
fi
# findout root block device + fstype
eval "$(mount | awk '/\/dev\// {if ($3 == "/") {print "root=" $1 "\nFSTYPE=" $5; exit}}')"
if [ -z "$root" ]; then
- echo "mkinitramfs: failed to determine root device"
- echo "mkinitramfs: workaround is MODULES=most"
- echo "Error please report bug on initramfs-tools and include the output of 'mount'"
+ echo "mkinitramfs: failed to determine root device" >&2
+ echo "mkinitramfs: workaround is MODULES=most" >&2
+ echo "Error please report bug on initramfs-tools and include the output of 'mount'" >&2
exit 1
fi
@@ -252,10 +252,10 @@ dep_add_modules()
if [ "${FSTYPE}" = "unknown" ]; then
FSTYPE=$(blkid -o value -s TYPE "${root}")
if [ -z "${FSTYPE}" ]; then
- echo "mkinitramfs: unknown fstype on root ${root}"
- echo "mkinitramfs: workaround is MODULES=most"
- echo "Error please report bug on initramfs-tools"
- exit 1
+ echo "mkinitramfs: unknown fstype on root ${root}" >&2
+ echo "mkinitramfs: workaround is MODULES=most" >&2
+ echo "Error please report bug on initramfs-tools" >&2
+ exit 1
fi
fi
@@ -349,9 +349,9 @@ dep_add_modules()
# Error out if /sys lack block dev
if [ -z "${block}" ] || [ ! -e /sys/block/${block} ]; then
- echo "mkinitramfs: for root ${root} missing ${block} /sys/block/ entry"
- echo "mkinitramfs: workaround is MODULES=most"
- echo "mkinitramfs: Error please report the bug"
+ echo "mkinitramfs: for root ${root} missing ${block} /sys/block/ entry" >&2
+ echo "mkinitramfs: workaround is MODULES=most" >&2
+ echo "mkinitramfs: Error please report the bug" >&2
exit 1
fi