landscape-scripts
landscape-scripts copied to clipboard
Remote wipe script
Remote wipe script
This script will destroy any crypt devices on the target machine - comes with a warning to prevent accidental triggering
thanks @Perfect5th - will action your feedback later on
added those changes @Perfect5th - just need clarification on the python 3.x point
Should be safety not saftey
On Wed, Sep 25, 2024, 14:13 Peter J De Sousa @.***> wrote:
@.**** commented on this pull request.
In management/remote-wipe/main.py https://github.com/canonical/landscape-scripts/pull/13#discussion_r1775847671 :
return crypt
- if "crypt" == block_device.get("type", ""):
return block_device["name"]- return None
+def wipe(saftey_on=True, cycles=10):
- if saftey_on:
print("Safety on - not firing")return- block_devices = json.loads(subprocess.check_output("lsblk --json".split(" ")))
- crypts = []
- for block_device in block_devices["blockdevices"]:
if crypt := search_for_crypt(block_device):gosh typoed that - I've fixed the note should be ready now @Perfect5th https://github.com/Perfect5th
— Reply to this email directly, view it on GitHub https://github.com/canonical/landscape-scripts/pull/13#discussion_r1775847671, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL7JDA32H2JWLHDHFK672LZYMDPNAVCNFSM6AAAAABOQDYZM6VHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGMRZGMYDINJXG4 . You are receiving this because you are subscribed to this thread.Message ID: @.***>
hi @silverdrake11 this was already fixed in the original patch - please review the latest batch of changes