Skip to contentSkip to conversation

Enabling Magic SysRq Key on boot before INIT

DISCUSSION Eric Schoeller 3 participants 3 messages Nov 13, 2007 – Nov 14, 2007

lore
Share & tools
lore
#0 lore raw

Hello,

I would like to enable the Magic SysRq key immediately when the linux kernel starts to boot, not when INIT begins. So, I am familiar with the sysctl command and /etc/sysctl.conf - but I'd like to modify these types of kernel variables earlier in the boot process. I thought that I could, perhaps, pass an argument to my "kernel" line in my bootloader (grub) configuration, but I have not been able to figure that out.

Is this possible?

Thanks,

Eric Schoeller
Infrastructure Systems and Services
University of Colorado, Boulder

#1 lore raw
Quoted 9 lines · Eric Schoeller

Hello,

I would like to enable the Magic SysRq key immediately when the linux kernel starts to boot, not when INIT begins. So, I am familiar with the sysctl command and /etc/sysctl.conf - but I'd like to modify these types of kernel variables earlier in the boot process. I thought that I could, perhaps, pass an argument to my "kernel" line in my bootloader (grub) configuration, but I have not been able to figure that out.

sysrq_always_enabled

#2 lore raw
Quoted 11 lines · On Tue, 13 Nov 2007 19:55:09 -0500 Chuck Ebbert wrote:
Quoted 9 lines · Eric Schoeller

Hello,

I would like to enable the Magic SysRq key immediately when the linux kernel starts to boot, not when INIT begins. So, I am familiar with the sysctl command and /etc/sysctl.conf - but I'd like to modify these types of kernel variables earlier in the boot process. I thought that I could, perhaps, pass an argument to my "kernel" line in my bootloader (grub) configuration, but I have not been able to figure that out.

Quoted 1 line

sysrq_always_enabled

I thought that Eric was asking if it was possible to alter sysctls by adding boot command line arguments.. if he was, then the answer is no, it's not (in general).

---
~Randy