From 9e7077e79b063aeeea11da883eabd3ed221ffcec Mon Sep 17 00:00:00 2001 From: Vallabh Kansagara Date: Sun, 3 May 2015 11:35:10 +0530 Subject: [PATCH] Easy injection into grub using kernel parameter. adding into grub.cfg using the 10_linux as bellow By exporting the $GRUB_CMDLINE_LINUX_DEFAULT as " initcall_debug printk.time=y quiet init=/sbin/bootchartd" into the grub.cfg. update the grub via sudo update-grub. safest way to inject into grub. --- README | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README b/README index 51da2f6..70d9a16 100644 --- a/README +++ b/README @@ -23,8 +23,11 @@ netlink interface, amongst other new features. After install, simply add these options to your kernel command-line, normally in /boot/grub/menu.lst: - - initcall_debug printk.time=y quiet init=/sbin/bootchartd ... + open file /etc/grub.d/10_linux with root privileges and add the line as bellow to the top of the file + + export GRUB_CMDLINE_LINUX_DEFAULT="initcall_debug printk.time=y quiet init=/sbin/bootchartd" + After Adding the line update the grub as bellow command with root privileges + sudo update-grub Then - after bootup, run 'pybootchartgui -i' to get an interactive chart rendering tool. If you want to chart the initrd, add