Add state disk volume mounter

Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
Daniel Weiße 2022-04-05 15:12:20 +02:00 committed by Daniel Weiße
parent 4b156be15e
commit 0e2025b67c
7 changed files with 269 additions and 1 deletions

View file

@ -10,7 +10,7 @@ import (
// This function WILL cause a system crash!
// DO NOT call it in any code that may be covered by automatic or manual tests.
func KernelPanic(err error) {
fmt.Println(err)
fmt.Fprint(os.Stderr, err)
_ = os.WriteFile("/proc/sys/kernel/sysrq", []byte("1"), 0o644)
_ = os.WriteFile("/proc/sysrq-trigger", []byte("c"), 0o644)
panic(err)