mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-05 05:24:16 -04:00
Add state disk volume mounter
Signed-off-by: Daniel Weiße <dw@edgeless.systems>
This commit is contained in:
parent
4b156be15e
commit
0e2025b67c
7 changed files with 269 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue