diff options
| author | Chris Lumens <clumens@redhat.com> | 2008-03-18 19:34:04 -0400 |
|---|---|---|
| committer | Chris Lumens <clumens@redhat.com> | 2008-03-18 19:34:39 -0400 |
| commit | e2dff08cb0ed80f7a6d49a91d4b88643e0efcfb9 (patch) | |
| tree | d05ae1aba47a920780359ef8e689e76fcde802fb /loader2/method.c | |
| parent | 179d5851c9ef31b2ab46e81b7d90df261ac68c23 (diff) | |
Work on support for NFSISO installs when using boot.iso.
Diffstat (limited to 'loader2/method.c')
| -rw-r--r-- | loader2/method.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/loader2/method.c b/loader2/method.c index faae66842..26f360ccb 100644 --- a/loader2/method.c +++ b/loader2/method.c @@ -111,7 +111,7 @@ int mountLoopback(char *fsystem, char *mntpoint, char *device) { } /* returns the *absolute* path (malloced) to the #1 iso image */ -char * validIsoImages(char * dirName, int *foundinvalid) { +char * validIsoImages(char * dirName, int *foundinvalid, int checkStage2) { DIR * dir; struct dirent * ent; char isoImage[1024]; @@ -135,13 +135,18 @@ char * validIsoImages(char * dirName, int *foundinvalid) { errno = 0; continue; } - + if (mountLoopback(isoImage, "/tmp/loopimage", "/dev/loop7")) { logMessage(WARNING, "failed to mount %s", isoImage); errno = 0; continue; } - + + if (!checkStage2) { + umountLoopback("/tmp/loopimage", "/dev/loop7"); + break; + } + if (mountLoopback("/tmp/loopimage/images/stage2.img", "/mnt/runtime", "/dev/loop0")) { umountLoopback("/mnt/runtime", "/dev/loop0"); } else { |
