[PATCH rhel5 2/2] noeject overrides kickstart eject (#477887)

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

 



When noeject is passed on the command line it should overide any eject
commands in the kickstart file.

Resolves: rhbz#477887
---
 anaconda |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/anaconda b/anaconda
index 106928b..ef1c9b6 100755
--- a/anaconda
+++ b/anaconda
@@ -992,8 +992,11 @@ if __name__ == "__main__":
     if anaconda.isKickstart and instClass.ksdata.reboot["eject"]:
         isys.flushDriveDict()
         for drive in isys.cdromList():
-            log.info("attempting to eject %s" % drive)
-            isys.ejectCdrom(drive)
+            if not anaconda.noeject:
+                log.info("attempting to eject %s" % drive)
+                isys.ejectCdrom(drive)
+            else:
+                log.info("noeject in effect, not ejecting %s" % drive)
 
     del anaconda.intf
 
-- 
1.7.3.3

_______________________________________________
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