Skip to content

Commit 8faa3ae

Browse files
rameshg87SHIGEMATSU Mitsuhiro
authored andcommitted
Make sure sysrq functions are enabled in reboot.sh
This commit echoes '1' to >/proc/sys/kernel/sysrq to make sure that sysrq functions are enabled before invoking them. Change-Id: I88697efbc1bd0dec5ed4cbcd8d89b0b5d0734bdd
1 parent 141191b commit 8faa3ae

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ironic_python_agent/shell/reboot.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,8 @@
1818

1919
set -e
2020

21+
# Make sure all functions of sysrq is enabled.
22+
echo "1" > /proc/sys/kernel/sysrq
23+
2124
echo "s" > /proc/sysrq-trigger
2225
echo "b" > /proc/sysrq-trigger

0 commit comments

Comments
 (0)