Skip to content
Snippets Groups Projects
Verified Commit 22c45d37 authored by anarcat's avatar anarcat
Browse files

retirement: expand on vmtouch experiment

I had segfaults on nwipe on window resizes, hopefully that will help.
parent f0f94d38
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ To wipe disks on servers without a serial console or management ...@@ -63,7 +63,7 @@ To wipe disks on servers without a serial console or management
interface, you need to be a little more creative. We do this with the interface, you need to be a little more creative. We do this with the
`nwipe(1)` command, which should be installed before anything: `nwipe(1)` command, which should be installed before anything:
apt install nwipe apt install nwipe vmtouch
Run in a screen: Run in a screen:
...@@ -101,12 +101,16 @@ When you return: ...@@ -101,12 +101,16 @@ When you return:
export SHELL=/tmp/root/sh && export SHELL=/tmp/root/sh &&
exec screen -s $SHELL exec screen -s $SHELL
TODO: the above eventually failed to make busybox survive the 2. lock down busybox and screen in memory
destruction, probably because it got evicted from RAM and couldn't
be found in swap again (as *that* was destroyed too). We should vmtouch -dl /usr/bin/screen /bin/busybox /tmp/root/sh /usr/sbin/nwipe
try using [vmtouch](https://hoytech.com/vmtouch/) with something like `vmtouch -dl
/tmp/root/sh` next time, although that is only [available in buster TODO: the above aims at making busybox survive the destruction, so
and later](https://tracker.debian.org/pkg/vmtouch). that it's cached in RAM. It's unclear if that actually works,
because typically SSH is also busted and needs a lot more to
bootstrap, so we can't log back in if we lose the
console. Ideally, we'd run this in a serial console that would
have more reliable access... See also [vmtouch](https://hoytech.com/vmtouch/).
2. kill all processes but the SSH daemon, your SSH connection and 2. kill all processes but the SSH daemon, your SSH connection and
shell. this will vary from machine to machine, but a good way is shell. this will vary from machine to machine, but a good way is
......
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