summaryrefslogtreecommitdiffstats
path: root/loader2/method.c
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-03-18 18:45:42 -0400
committerChris Lumens <clumens@redhat.com>2008-03-18 19:34:39 -0400
commitf2a713b19288c089caed3ead7239e97ed32c671f (patch)
treebe254d9089c022334e9ad9d7c525a0f42acba7fb /loader2/method.c
parentfa269d261c319d80f759b6ec588b681776d9757a (diff)
downloadanaconda-f2a713b19288c089caed3ead7239e97ed32c671f.tar.gz
anaconda-f2a713b19288c089caed3ead7239e97ed32c671f.tar.xz
anaconda-f2a713b19288c089caed3ead7239e97ed32c671f.zip
Make these error messages more useful.
Diffstat (limited to 'loader2/method.c')
-rw-r--r--loader2/method.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/loader2/method.c b/loader2/method.c
index a6cc0a130..38fb63fa4 100644
--- a/loader2/method.c
+++ b/loader2/method.c
@@ -91,7 +91,8 @@ int mountLoopback(char *fsystem, char *mntpoint, char *device) {
if (doPwMount(fsystem, mntpoint, "squashfs", opts)) {
if (doPwMount(fsystem, mntpoint, "cramfs", opts)) {
if (doPwMount(fsystem, mntpoint, "vfat", opts)) {
- logMessage(ERROR, "failed to mount loop: %s", strerror(errno));
+ logMessage(ERROR, "failed to mount loopback device %s on %s as %s: %s",
+ device, mntpoint, fsystem, strerror(errno));
return LOADER_ERROR;
}
}
@@ -99,6 +100,8 @@ int mountLoopback(char *fsystem, char *mntpoint, char *device) {
}
}
+ logMessage(INFO, "mounted loopback device %s on %s as %s", mntpoint, device, fsystem);
+
return 0;
}