Re: mediacheck and kickstart dont like each other

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

 



On Mon, Nov 24, 2003 at 10:56:25AM -0500, Paul Pianta wrote:
> i am trying to force a mediacheck on my custom cd but it seems that when 
> i combine the 'ks=cdrom:/ks.cfg' and 'mediacheck' options - mediacheck 
> is ignored ...
> 
> my isolinux.cfg/syslinux.cfg kernel append line is as follows:
> 
> 'append initrd=initrd.img ks=cdrom:/ks.cfg mediacheck'
> 
> anyone have any ideas on how to combine a mediacheck and a kickstart file?

You need to patch Anaconda for this...  See the attached patch.  Once
this is applied (and anaconda rebuilt, reinstalled, etc.) these options
will not be ignored during kickstart.  My patches are for RH9.

-Matt

-- 
Matt Phillips <matt.phillips@xxxxxxxxxxxx>
ICT-Carlisle, Operation Mobilisation, UK
Public PGP Key: http://moses.om.org/~mattp/gpg.asc
diff -Nur anaconda-9.0.orig/loader2/cdinstall.c anaconda-9.0/loader2/cdinstall.c
--- anaconda-9.0.orig/loader2/cdinstall.c	2003-07-18 14:30:45.000000000 -0400
+++ anaconda-9.0/loader2/cdinstall.c	2003-07-18 14:30:16.000000000 -0400
@@ -241,10 +241,6 @@
   char mediasum[33];
   int isostatus;
 
-  /* dont bother to test in automated installs */
-  if (FL_KICKSTART(flags))
-      return;
-
   /* see what status is */
   isostatus = getISOStatusFromCDROM(dev, mediasum);
   writeISOStatus(isostatus, mediasum);
diff -Nur anaconda-9.0.orig/loader2/method.c anaconda-9.0/loader2/method.c
--- anaconda-9.0.orig/loader2/method.c	2003-02-17 19:45:54.000000000 -0500
+++ anaconda-9.0/loader2/method.c	2003-07-18 14:32:46.000000000 -0400
@@ -339,10 +339,6 @@
     char *tmpstr;
     int rc, first;
 
-    /* dont bother to test in automated installs */
-    if (FL_KICKSTART(flags))
-	return;
-
     /* if they did not specify to mediacheck explicitely then return */
     if (!FL_MEDIACHECK(flags))
 	return;

[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