onos/tools/tutorials/vm/prepForExport
Thomas Vachuska c419f0ef05 Adding artifacts for the tutorial VM.
Change-Id: I5aea02fe70ec012d7fcacebaa2f9b15b949b41b8
2018-02-07 14:53:37 -08:00

11 lines
391 B
Bash
Executable File

#!/bin/bash
# -----------------------------------------------------------------------------
# Prepars the ONOS Tutorial VM for export; run from the VM.
# -----------------------------------------------------------------------------
sudo chattr +i ~/.config/xfce4/desktop/icons*
destroyCluster
sudo mn -c
sudo dd if=/dev/zero of=zerofillfile bs=1M
rm -f zerofillfile /tmp/*
sudo shutdown now