自定义 Linux 启动¶
文档时效性说明
本文为早期笔记,可能存在版本过时、命令失效、链接失效、最佳实践变化等问题。请以官方最新文档为准。
原英文标题:Customizing Linux Boot
To show kernel messages:
To enable hibernate:
disk UUID can be shown by blkid command.
generate grub.cfg :
and then edit /etc/mkinitcpio.conf, find the line that looks like this:
It is located in the section named HOOKS. After udev insert hook resume (Like this: ..base udev resume..)
Save the file. run
to generate initramfs.
To boot into runlevel 3:
To get current default runlevel: