summaryrefslogtreecommitdiffstats
path: root/loader2
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2008-01-31 15:40:11 -0500
committerChris Lumens <clumens@redhat.com>2008-01-31 15:40:50 -0500
commit20bdc17e45d38ff4466fea988ebd59ff153d784e (patch)
tree41b9a32747bac98a47dca3be8b33b8e64ce59103 /loader2
parentc9fe2f1cfb8d7414697bf39151eb89e08f2c5e07 (diff)
downloadanaconda-20bdc17e45d38ff4466fea988ebd59ff153d784e.tar.gz
anaconda-20bdc17e45d38ff4466fea988ebd59ff153d784e.tar.xz
anaconda-20bdc17e45d38ff4466fea988ebd59ff153d784e.zip
When there are errors mounting loopback images, report them.
Diffstat (limited to 'loader2')
-rw-r--r--loader2/method.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/loader2/method.c b/loader2/method.c
index b92b16c08..85c0aa551 100644
--- a/loader2/method.c
+++ b/loader2/method.c
@@ -89,7 +89,7 @@ int mountLoopback(char * fsystem, char * mntpoint, char * device) {
#endif
targfd = open(fsystem, O_RDONLY);
if (targfd == -1) {
- logMessage(ERROR, "open file to loop mount %s failed", fsystem);
+ logMessage(ERROR, "open file to loop mount %s failed: %s", fsystem, strerror(errno));
return LOADER_ERROR;
}
#ifdef O_DIRECT
@@ -98,7 +98,7 @@ int mountLoopback(char * fsystem, char * mntpoint, char * device) {
loopfd = open(device, O_RDONLY);
if (loopfd == -1) {
- logMessage(ERROR, "unable to open loop device %s", device);
+ logMessage(ERROR, "unable to open loop device %s: %s", device, strerror(errno));
return LOADER_ERROR;
}
logMessage(INFO, "mntloop %s on %s as %s fd is %d",