From 314087427f5f87554975e4ccf0a67cecdcadd90e Mon Sep 17 00:00:00 2001 From: Matthias Hentges Date: Sun, 14 Aug 2005 10:07:02 +0000 Subject: altboot: Fix fsck on loop-images, unb0rking SD, CF and NFS booting of loop-images. --- packages/altboot/files/altboot.func | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'packages/altboot/files/altboot.func') 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" -- cgit v1.2.3