Skip to content

Commit

Permalink
enable sysrq operations on boot
Browse files Browse the repository at this point in the history
It used to be enabled by initrd before, but we need
to do this on our own meanwhile.
  • Loading branch information
adrianschroeter committed May 14, 2020
1 parent 877139a commit 2a73e47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-vm
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,8 @@ vm_detect_2nd_stage() {
echo "Linux version: `uname -rv`"
echo "Increasing log level from now on..."
echo 4 > /proc/sysrq-trigger
echo "Enable sysrq operations"
echo 1 > /proc/sys/kernel/sysrq
if test "$PERSONALITY" != 0 -a -z "$PERSONALITY_SET" ; then
export PERSONALITY_SET=true
echo "switching personality to $PERSONALITY..."
Expand Down

0 comments on commit 2a73e47

Please sign in to comment.