从 Ubuntu 启动过程中删除抽象

Mad*_*uja 11 linux boot ubuntu init-script

近 5 年后我一直在使用 Linux,并观察到引导过程几乎被抽象化了。我的意思是,用户看不到幕后发生的事情(由于启动画面等)。现在,这可能对最终用户有好处,但对极客来说却不是 :)

我想带回旧时代的冗长。这是我所做的:

通过从命令行中删除“splash”和“quiet”参数,我已经能够摆脱其中的一些。但是,我仍然看不到正在启动的服务(如init.d 中的服务)。

我认为这是因为 init 守护进程被新贵取代了。是否有一些配置文件我可以调整以恢复正在发生的事情的详细程度。

此外,一旦登录屏幕出现,它就会清除引导日志历史记录。有没有办法禁用它?

注意:我知道我可以通过简单地将发行版切换到 Arch 或 Slackware 来做到这一点。但我不想那样做。

Gil*_*il' 7

您可以传递--verbose内核命令行(替换quiet splash)以使 upstart 更加详细。请参阅新贵调试

您可以放入console output全局配置文件,/etc/init.conf以便每个作业都将其 stdout 和 stderr 连接到控制台(默认情况下,它们连接到/dev/null)。(我不确定这是否真的有效;/etc/init.conf实际上没有记录,我没有测试它是否以这种方式读取,这个线程不是结论性的。请测试并报告。)这个指令可以进入个人工作的描述( /etc/init/*.conf) 如果你想有选择性(有些人已经有了)。


wag*_*wag 5

plymouth处理 Ubuntu 的启动画面。
/usr/share/doc/plymouth/README.Debian解释如何删除它:

There are two methods to disable the splash screen.  Both have the
same effect.  Your boot will show such messages as are emitted by
the starting services, and will still be able to prompt if needs be.

1) Remove all of the plymouth-theme-* packages from your system,
   including the text ones.  Plymouth will remain installed to
   permit boot-time prompts.

2) Remove "splash" from the kernel command-line.  You can do this
   per-boot, or make it permanent by changing the
   GRUB_CMDLINE_LINUX_DEFAULT line in /etc/default/grub
Run Code Online (Sandbox Code Playgroud)

请注意,您必须update-grub在第二种方法之后运行。

plymouth也负责/var/log/boot.log
更多引导消息可通过dmesg.