diff options
author | Mike Fulbright <msf@redhat.com> | 2002-05-30 20:24:57 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2002-05-30 20:24:57 +0000 |
commit | 85d7a82827dfe3190178993443204d018eb8d78e (patch) | |
tree | 5d1412e50f0675a0cf8493837e5346a51744d45b /floppy.py | |
parent | 354fcd3d6a556dda7c9835d68a9d33fd874d0fe7 (diff) | |
download | anaconda-85d7a82827dfe3190178993443204d018eb8d78e.tar.gz anaconda-85d7a82827dfe3190178993443204d018eb8d78e.tar.xz anaconda-85d7a82827dfe3190178993443204d018eb8d78e.zip |
ask user to insert a floppy and give chance to cancel
Diffstat (limited to 'floppy.py')
-rw-r--r-- | floppy.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -53,12 +53,16 @@ def makeBootdisk (intf, floppyDevice, hdList, instPath, bootloader): if flags.test: return DISPATCH_NOOP - intf.messageWindow( _("Insert a floppy disk"), + rc = intf.messageWindow( _("Insert a floppy disk"), _("Please remove any diskettes from the floppy " "drive, and insert the floppy diskette that " "is to contain the boot disk.\n\nAll data will " - "be ERASED during creation of the boot disk.")) + "be ERASED during creation of the boot disk."), + type="okcancel") + if rc: + return DISPATCH_NOOP + # this is faster then waiting on mkbootdisk to fail device = floppyDevice file = "/tmp/floppy" |