summaryrefslogtreecommitdiffstats
path: root/floppy.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2002-05-30 20:24:57 +0000
committerMike Fulbright <msf@redhat.com>2002-05-30 20:24:57 +0000
commit85d7a82827dfe3190178993443204d018eb8d78e (patch)
tree5d1412e50f0675a0cf8493837e5346a51744d45b /floppy.py
parent354fcd3d6a556dda7c9835d68a9d33fd874d0fe7 (diff)
downloadanaconda-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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/floppy.py b/floppy.py
index 6abf1cc23..62d04b081 100644
--- a/floppy.py
+++ b/floppy.py
@@ -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"