X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=blobdiff_plain;f=grml2usb;h=598a173873e798eda6395ac6bde07648f457ffeb;hp=be6b2276b3606214d5975a837a34afcdf192fb4b;hb=4be3d88c2cba39bcafc0388978b5c61c3f5b0fc0;hpb=1d2aba6b461908251a2ac45fcd24a40861cccba0 diff --git a/grml2usb b/grml2usb index be6b227..598a173 100755 --- a/grml2usb +++ b/grml2usb @@ -1475,7 +1475,15 @@ def install(image, device): iso_mountpoint = image remove_image_mountpoint = False if os.path.isdir(image): - logging.info("Using %s as install base", image) + if options.force or os.path.exists(os.path.join(image, 'live')): + logging.info("Using %s as install base", image) + else: + q = raw_input("%s does not look like a grml system. " + "Do you really want to use this image? y/N " % image) + if q.lower() == 'y': + logging.info("Using %s as install base", image) + else: + logging.info("Skipping install base %s", image) else: logging.info("Using ISO %s", image) iso_mountpoint = tempfile.mkdtemp(prefix="grml2usb", dir=os.path.abspath(options.tmpdir))