Re: how to copy file at post?

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

 



Chan, Dominic wrote:
I got one problem with the below script, when kickstart/anaconda process
the %post section, it already eject by cd!  Is there a way to copy the
file before the CD ejects itself?

Try this patch to anaconda:


diff -urN anaconda-9.0.orig/packages.py anaconda-9.0/packages.py
--- anaconda-9.0.orig/packages.py       2003-02-20 19:13:26.000000000 -0800
+++ anaconda-9.0/packages.py    2003-04-24 12:07:09.000000000 -0700
@@ -913,7 +913,8 @@
     if not cb.beenCalled:
         cb.initWindow.pop()

-    method.filesDone ()
+    # Removed this line to see if it unmounts the CDROM after installation
+    #method.filesDone ()

     # rpm environment files go bye-bye
     for file in ["__db.001", "__db.002", "__db.003"]:



Hope that helps.  It works for me.

Forrest
--




[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