+ msg = "snf-image-creator detected a %s system on the input media. " \
+ "Would you like to run a wizards to assists you through the " \
+ "image creation process?\n\nChoose <Yes> to run the wizard, " \
+ "<No> to run the snf-image-creator in expert mode or press " \
+ "ESC to quit the program." \
+ % (dev.ostype if dev.ostype == dev.distro else "%s (%s)" %
+ (dev.ostype, dev.distro))
+
+ update_background_title(session)
+
+ while True:
+ code = d.yesno(msg, width=YESNO_WIDTH, height=12)
+ if code == d.DIALOG_OK:
+ if wizard(session):
+ break
+ elif code == d.DIALOG_CANCEL:
+ main_menu(session)
+ break
+
+ if confirm_exit(d):
+ break
+