Hi Michael,
Il 27/12/2010 20:05, Riccardo Magliocchetti ha scritto:
Hi,
Il -10/01/-28163 20:59, Michael Biebl ha scritto:
Hi,
it would be great if bootchart allowed to profile the initrd step during
boot.
Attached an untested initramfs-tools hook script for bootchart2. It is
based on the dracut bootchart2 config file taken from dracut version
013-1 available in sid.
I don't run a kernel with initramfs so again this is not tested and i
have no clue about initramfs-tools. Beware, this script could hurts kittens.
So if you are comfortable with initramfs-tools please take a look or
poke the relevant people. After the script is found to work fine the
last thing one should do is to add "rdinit=/sbin/bootchartd" instead of
"init=/sbin/bootchartd".
David, probably this bug shold be moved to initramfs-tools no?
thanks,
riccardo
#!/bin/sh
set -e
PREREQ="busybox"
prereqs () {
echo "${PREREQ}"
}
case "${1}" in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
copy_exec /bin/bash
copy_exec /sbin/bootchartd
mkdir -p $DESTDIR/lib/bootchart/tmpfs
copy_exec /lib/bootchart/bootchart-collector
mkdir -p $DESTDIR/etc
cp /etc/bootchartd.conf $DESTDIR/etc
exit 0