Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   64 Studio User (http://www.linux-archive.org/64-studio-user/)
-   -   Look for updates.img and product.img on NFS installs. (http://www.linux-archive.org/64-studio-user/370227-look-updates-img-product-img-nfs-installs.html)

Chris Lumens 05-12-2010 06:39 PM

Look for updates.img and product.img on NFS installs.
 
Related: rhbz#587696
---
loader/nfsinstall.c | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/loader/nfsinstall.c b/loader/nfsinstall.c
index e4b2396..4337ddc 100644
--- a/loader/nfsinstall.c
+++ b/loader/nfsinstall.c
@@ -311,8 +311,7 @@ char * mountNfsImage(struct installMethod * method,
checked_asprintf(&buf, "%.*s/RHupdates",
(int) (strrchr(fullPath, '/')-fullPath),
fullPath);
-
- logMessage(INFO, "mounting nfs path %s for updates", buf);
+ logMessage(INFO, "Looking for updates in %s", buf);

if (!doPwMount(buf, "/tmp/update-disk", "nfs", mountOpts, NULL)) {
logMessage(INFO, "Using RHupdates/ for NFS install");
@@ -323,6 +322,22 @@ char * mountNfsImage(struct installMethod * method,
logMessage(INFO, "No RHupdates/ directory found, skipping");
}

+ free(buf);
+
+ checked_asprintf(&buf, "%.*s/updates.img",
+ (int) (strrchr(fullPath, '/')-fullPath),
+ fullPath):
+ logMessage(INFO, "Looking for updates in %s", buf);
+ copyUpdatesImg(buf);
+ free(buf);
+
+ checked_asprintf(&buf, "%.*s/product.img",
+ (int) (strrchr(fullPath, '/')-fullPath),
+ fullPath):
+ logMessage(INFO, "Looking for product in %s", buf);
+ copyProductImg(buf);
+ free(buf);
+
stage = NFS_STAGE_DONE;
break;
}
--
1.7.0.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 03:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.