fixup systemd boot errors, add sysrq support
[automated-distro-installer] / fai / config / scripts / GRUB_PC / 11-ian
index 72dc7ec64d57f42ee0879e92f905a66c84c3fdaa..949f1817627b1450732694ee90b23193335cb909 100755 (executable)
@@ -91,6 +91,11 @@ sed -ri 's/(^ *GRUB_CMDLINE_LINUX.*)quiet splash/\1/' /etc/default/grub
 # warning about it in error.log
 sed -i '/^ *GRUB_HIDDEN_TIMEOUT/d' /etc/default/grub
 update-grub2
+
+# this is usefull. Only thing reason I see this being disabled by default is
+# that a normal user can disrupt the system, eg cause a reboot.
+sed -i '$a kernel.sysrq=1
+/^kernel.sysrq=/d' /etc/sysctl.conf
 EOF