liveusb/gui.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)
New commits: commit b6f59c676fa35e47e8ea66a9edb6c7de6f977ab0 Author: Luke Macken lmacken@redhat.com Date: Thu Aug 27 22:06:04 2009 -0400
Fix our --reset-mbr command
diff --git a/liveusb/gui.py b/liveusb/gui.py index e8a97ef..4a38bdd 100755 --- a/liveusb/gui.py +++ b/liveusb/gui.py @@ -426,10 +426,13 @@ class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface): self.live.unmount_device(force=True) self.live.reset_mbr() elif not self.live.mbr_matches_syslinux_bin(): - self.status(_("Warning: The Master Boot Record on your device " - "does not match your system's syslinux MBR. If you " - "have trouble booting this stick, try running the " - "liveusb-creator with the --reset-mbr option.")) + if self.opts.reset_mbr: + self.live.reset_mbr() + else: + self.status(_("Warning: The Master Boot Record on your device " + "does not match your system's syslinux MBR. If you " + "have trouble booting this stick, try running the " + "liveusb-creator with the --reset-mbr option."))
try: self.live.mount_device()
liveusb-creator@lists.stg.fedorahosted.org