[PATCH] [master] Default to /images/install.img if no dir is given in stage2=hd: (#528809)

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

 



Another option to solve the bug would be to write append "/images/install.img"
to "hd:LABEL="Fedora" in buildinstall.

---
 loader/hdinstall.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/loader/hdinstall.c b/loader/hdinstall.c
index a4396df..6d8a50a 100644
--- a/loader/hdinstall.c
+++ b/loader/hdinstall.c
@@ -170,8 +170,11 @@ char * mountHardDrive(struct installMethod * method,
         /* if exist, duplicate */
         if (kspartition)
             kspartition = strdup(kspartition);
-        if (ksdirectory)
+        if (ksdirectory) {
             ksdirectory = strdup(ksdirectory);
+        } else {
+            ksdirectory = strdup("/images/install.img");
+        }
 
         if (!kspartition || !ksdirectory) {
             logMessage(ERROR, "missing partition or directory specification");
-- 
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