automate/020_bootchart.sh

9 lines
239 B
Bash
Executable File

#!/usr/bin/env bash
apt install -y bootchart2 pybootchartgui
sed -i 's|^GRUB_CMDLINE_LINUX="\(.*\)"|GRUB_CMDLINE_LINUX="\1 initcall_debug printk.time=y init=/sbin/bootchartd"|' /etc/default/grub
update-grub
update-mkinitramfs -k all -u