[Pkg-privacy-commits] [tails-installer] 22/40: Add a --dd command-line option
anonym
anonym-tails-guest at moszumanska.debian.org
Thu Jan 12 15:15:01 UTC 2017
This is an automated email from the git hooks/post-receive script.
anonym-tails-guest pushed a commit to annotated tag 3.13.1
in repository tails-installer.
commit 52f3b1779521954aca417539d66f982544020795
Author: Luke Macken <lmacken at redhat.com>
Date: Tue Nov 25 20:34:46 2014 -0700
Add a --dd command-line option
---
liveusb-creator | 3 +++
liveusb/gui.py | 3 +++
2 files changed, 6 insertions(+)
diff --git a/liveusb-creator b/liveusb-creator
index 5351fa5..3dd7026 100755
--- a/liveusb-creator
+++ b/liveusb-creator
@@ -57,6 +57,9 @@ def parse_args():
parser.add_option('-H', '--hash', dest='hash',
action='store', metavar='HASH', default='sha1',
help='Use a specific checksum algorithm (default: sha1)')
+ parser.add_option('-d', '--dd', dest='destructive', action='store_true', default=False,
+ help='Overwrite your device with the image using dd '
+ '(WARNING: destructive)')
#parser.add_option('-F', '--format', dest='format', action='store_true', default=False,
# help='Format the device as FAT32 (WARNING: destructive)')
#parser.add_option('-z', '--usb-zip', dest='zip', action='store_true',
diff --git a/liveusb/gui.py b/liveusb/gui.py
index 8e570c2..ce20478 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -299,6 +299,9 @@ class LiveUSBDialog(QtGui.QDialog, LiveUSBInterface):
self.confirmed = False
self.mbr_reset_confirmed = False
+ if self.opts.destructive:
+ self.destructiveButton.setChecked(True)
+
# Intercept all liveusb INFO log messages, and display them in the gui
self.handler = LiveUSBLogHandler(lambda x: self.textEdit.append(x))
self.live.log.addHandler(self.handler)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list