[PATCH] Derive stage2= from repo=nfsiso: correctly (#565885)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Prevents sigsegv on x86_64.
---
 loader/method.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/loader/method.c b/loader/method.c
index 5f3a7ce..219fd06 100644
--- a/loader/method.c
+++ b/loader/method.c
@@ -516,6 +516,14 @@ void setStage2LocFromCmdline(char * arg, struct loaderData_s * ld) {
               &(((struct nfsInstallData *)ld->stage2Data)->host),
               &(((struct nfsInstallData *)ld->stage2Data)->directory),
               &(((struct nfsInstallData *)ld->stage2Data)->mountOpts));
+        } else if (!strncmp(arg, "nfsiso:", 7)) {
+            ld->method = METHOD_NFS;
+            ld->stage2Data = calloc(sizeof(struct nfsInstallData *), 1);
+
+            parseNfsHostPathOpts(arg + 7,
+              &(((struct nfsInstallData *)ld->stage2Data)->host),
+              &(((struct nfsInstallData *)ld->stage2Data)->directory),
+              &(((struct nfsInstallData *)ld->stage2Data)->mountOpts));
         } else if (!strncmp(arg, "ftp:", 4) || 
                    !strncmp(arg, "http", 4)) {
             ld->method = METHOD_URL;
-- 
1.6.0.6

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

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux