summaryrefslogtreecommitdiff
path: root/packages/altboot/files/altboot.func
diff options
context:
space:
mode:
authorMatthias Hentges <oe@hentges.net>2005-08-14 10:07:02 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-08-14 10:07:02 +0000
commit314087427f5f87554975e4ccf0a67cecdcadd90e (patch)
tree257310f17fe9fbcc1f09e0ca773b706f246c7e2f /packages/altboot/files/altboot.func
parentbcce60ff2cd34728d390d8f8ef55f55f456747c0 (diff)
altboot: Fix fsck on loop-images, unb0rking SD, CF and NFS booting of loop-images.
Diffstat (limited to 'packages/altboot/files/altboot.func')
-rw-r--r--packages/altboot/files/altboot.func5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/altboot/files/altboot.func b/packages/altboot/files/altboot.func
index 642587b630..0598c8ce93 100644
--- a/packages/altboot/files/altboot.func
+++ b/packages/altboot/files/altboot.func
@@ -151,8 +151,9 @@ pivot_image() {
if [ "$IMAGE_TYPE" = "" ]; then
IMAGE_TYPE="auto"
fi
- mount -t $IMAGE_TYPE /dev/loop0 /media/image || die "mount /dev/loop0 /media/image failed!"
-
+ # If mount fails it has the tendency to spew out a _lot_ of error messages.
+ # We direct the output to /dev/null so the user can see which step actually failed.
+ mount -t $IMAGE_TYPE /dev/loop0 /media/image >/dev/null 2>&1 || die "mount -t $IMAGE_TYPE /dev/loop0 /media/image failed!"
mkdir -p /media/image/media/ROM || die "mkdir -p /media/image/media/ROM failed"