Product SiteDocumentation Site

4.6. 取消 root 的提示等待

Note: This does not apply to the kernels provided for Debian 3.1 as the timeout for the kernel delay has been changed to 0.
Linux 2.4 kernels provide a way to access a root shell while booting which will be presented just after loading the cramfs file system. A message will appear to permit the administrator to enter an executable shell with root permissions, this shell can be used to manually load modules when autodetection fails. This behavior is the default for initrd's linuxrc. The following message will appear:
  Press ENTER to obtain a shell (waits 5 seconds)
可以通过编辑 /etc/mkinitrd/mkinitrd.conf 做如下设置, 来修改这一特性:
  # DELAY  The  number  of seconds the linuxrc script should wait to
  # allow the user to interrupt it before the system is brought up
  DELAY=0
然后重新生成您的 ramdisk image. 例如您可以这样做:
  # cd /boot
  # mkinitrd -o initrd.img-2.4.18-k7 /lib/modules/2.4.18-k7
或 (推荐):
  # dpkg-reconfigure -plow kernel-image-2.4.x-yz