My computer takes a long time to boot, and I want to analyze the boot process using bootchart
.
On Ubuntu, bootchart
is provided as a package that installs a command-line tool. That package is not present in Fedora — this guide from the Fedora Project states that I should add init=/usr/lib/systemd/systemd-bootchart
at the end of the kernel line in the bootloader configuration file.
The file usr/lib/systemd/systemd-bootchart
is present on my system, but I don't know how do I proceed in order to activate it upon boot.
I'm using grub as the bootloader, (not sure if it's grub or grub2). My configuration file is in /boot/efi/EFI/fedora/grub.cfg
. There's no kernel line in it, or any entry with init=
.
Best Answer
Take a look at Making Temporary Changes to a GRUB 2 Menu from the Fedora System Administrators' Guide.* It says:
In this case, you want to add the
init=/usr/lib/systemd/systemd-bootchart
parameter.Then, press
Ctrl-x
to boot.A temporary change seems what you probably want for bootchart. If you want to make the change permanent, see Making Persistent Changes to a GRUB 2 Menu Using the grubby Tool.
PS: On Fedora 23, you're using GRUB 2.
* CC-BY-SA 3.0, Copyright © 2015 Red Hat, Inc. and others.