Product SiteDocumentation Site

4.5. Disable root prompt on the initramfs

Note: This applies to the default kernels provided for releases after Debian 3.1
Linux2.4 kernel 在加载了 cramfs 文件系统后, 提供一个访问 root shell 的方法, 加载cramf文件系统后, 将要启动的时候, 出现提示信息, 此时允许管理员输入具有 root 权限的可执行 shell 命令, 通常用于自动检测失败后手动装载模块. 缺省为 initrdlinuxrc. 随后出现如下信息:
  "ALERT!  /dev/sda1 does not exist.  Dropping to a shell!
In order to remove this behavior you need to set the following boot argument:panic=0. Add this to the variable GRUB_CMDLINE_LINUX in /etc/default/grub and issue update-grub or to the append section of /etc/lilo.conf.