The long synching we warn the user about happens only for block devices
and does not happen for regualr files. So warn only if we are writing to
a block device. Also, correct the warning spelling a bit.
Change-Id: I0b1fc3362da371b150b2ea09a9b07fe83e8b149e
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
raise SystemExit(1)
except KeyboardInterrupt:
log.error("the program is interrupted")
- log.warning("do not panic if the program may not finish immediately, " \
- "just wait")
- log.warning("reason: this is the Linux kernel behavior - it " \
- "synchronizes the block device")
+ if flasher.target_is_block_device:
+ log.warning("do not panic if the program does not finish " \
+ "immediately, just wait")
+ log.warning("reason: this is the Linux kernel behavior - it " \
+ "synchronizes the block device")
raise SystemExit(1)
flashing_time = time.time() - start_time