diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-07-04 03:51:42 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-07-04 03:51:42 +0000 |
commit | 43336c57cbc7f8e050d17cfefb59fc065c732884 (patch) | |
tree | 9f05402e516091a2574c3eb3ec313c7d2d1bb6d6 /loader2/method.c | |
parent | 5e329b5028aff9ab08cf3dbeee0357f8c6dd65b0 (diff) | |
download | anaconda-43336c57cbc7f8e050d17cfefb59fc065c732884.tar.gz anaconda-43336c57cbc7f8e050d17cfefb59fc065c732884.tar.xz anaconda-43336c57cbc7f8e050d17cfefb59fc065c732884.zip |
2006-07-03 Jeremy Katz <katzj@redhat.com>
* loader2/method.c (getFileFromBlockDevice): Give a message if we
fail to make the device node for some reason (markmc, #197514)
Diffstat (limited to 'loader2/method.c')
-rw-r--r-- | loader2/method.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/loader2/method.c b/loader2/method.c index 404bd7d0f..a507f67a6 100644 --- a/loader2/method.c +++ b/loader2/method.c @@ -650,8 +650,10 @@ int getFileFromBlockDevice(char *device, char *path, char * dest) { logMessage(INFO, "getFileFromBlockDevice(%s, %s)", device, path); - if (devMakeInode(device, "/tmp/srcdev")) + if (devMakeInode(device, "/tmp/srcdev")) { + logMessage(ERROR, "failed to make device node for /dev/%s", device); return 1; + } if (doPwMount("/tmp/srcdev", "/tmp/mnt", "vfat", IMOUNT_RDONLY, NULL) && doPwMount("/tmp/srcdev", "/tmp/mnt", "ext2", IMOUNT_RDONLY, NULL) && |