Skip to content
Snippets Groups Projects
Unverified Commit 8384956f authored by anarcat's avatar anarcat
Browse files

working busybox incantation, delayed disk wipe

parent a5dae676
No related branches found
No related tags found
No related merge requests found
......@@ -6,9 +6,12 @@
2. if applicable, stop the VM: `virsh destroy $host`, or at least
stop the primary service on the machine
3. if applicable, undefine the VM: `virsh undefine $host`
4. wipe host data:
4. wipe host data, possibly with a delay:
* if applicable, remove the LVM logical volumes or virtual disk files
* if applicable, remove the LVM logical volumes or virtual disk
files:
echo 'lvremove -y vgname/lvname' | at now + 7 days
* for a normal machine or a machine we do not own the parent host
for, wipe the disks using the method described below
......@@ -44,8 +47,8 @@ This will take a long time. When you return:
1. start a `screen` session with `busybox` as your `SHELL`
chsh -s /bin/busybox root
export SHELL=/bin/busybox
ln -s /bin/busybox /root/sh
export SHELL=/root/sh
exec screen -s $SHELL
2. kill all processes but the SSH daemon, your SSH connexion and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment