[patch] loader.c parse dogtail=url parameter

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

 



Hello,
This patch allows /sbin/loader to parse dogtail=url boot cmd line parameter and pass it as parameter to /usr/bin/anaconda in stage2.img.

How can I test the new loader?
I have modified the original images/boot.img and replaced the loader found in initrd.img. I am able to boot from CDROM with the modified image but a little after the beginning it fails with: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(9,1)

According to this site:
http://www.informit.com/articles/article.asp?p=169466&seqNum=2&rl=1
the boot.iso image can be burned to CDROM and used to perform network installs.

Any help is appreciated.

Greetings,
Alexander.
--- loader.c.orig	2007-05-03 17:09:14.000000000 +0200
+++ loader.c	2007-05-03 17:40:42.000000000 +0200
@@ -641,6 +641,8 @@
             loaderData->updatessrc = strdup(argv[i] + 8);
         else if (!strncasecmp(argv[i], "updates", 7))
             flags |= LOADER_FLAGS_UPDATES;
+        else if (!strncasecmp(argv[i], "dogtail=", 8))
+            loaderData->dogtailsrc = strdup(argv[i] + 8);
         else if (!strcasecmp(argv[i], "isa"))
             flags |= LOADER_FLAGS_ISA;
         else if (!strncasecmp(argv[i], "dd=", 3) || 
@@ -1735,6 +1737,11 @@
             *argptr++ = loaderData.updatessrc;
         }
 
+        if (loaderData.dogtailsrc) {
+            *argptr++ = "--dogtail";
+            *argptr++ = loaderData.dogtailsrc;
+        }
+
         if ((loaderData.lang) && !FL_NOPASS(flags)) {
             *argptr++ = "--lang";
             *argptr++ = loaderData.lang;
--- loader.h.orig	2007-05-03 17:14:03.000000000 +0200
+++ loader.h	2007-05-03 17:15:02.000000000 +0200
@@ -111,6 +111,7 @@
     void * methodData;
     char * logLevel;
     char * updatessrc;
+    char * dogtailsrc;
 
     moduleList modLoaded;
     moduleDeps * modDepsPtr;

[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