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=
.
Answer
Take a look at Making Temporary Changes to a GRUB 2 Menu from the Fedora System Administrators' Guide.* It says:
- Start the system and, on the GRUB 2 boot screen, move the cursor to the menu entry you want to edit, and press the e key for edit.
- Move the cursor down to find the kernel command line. The kernel command line starts with linux on 64-Bit IBM Power Series, linux16 on x86-64 BIOS-based systems, or linuxefi on UEFI systems.
- Move the cursor to the end of the line.
- Press
Ctrl+a
andCtrl+e
to jump to the start and end of the line, respectively. On some systems,Home
andEnd
might also work.- Edit the kernel parameters as required.
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.
No comments:
Post a Comment