= Generating Bootcharts for a UME Image = == Creating an Image with Bootchart Enabled == * Launch image-creator * Open target chroot * In target chroot: * `sudo apt-get update` * `sudo apt-get install bootchart` * Create an image and write it to a USB key * Install the image on the USB key (or run a live image off the USB key) * When the system has finished installing and booting, a png containing a boot chart will be generated in /var/log/bootchart * To generate a new bootchart, simply reboot. For example, in terminal: * `sudo shutdown -r now` * A new png will automatically be created in /var/log/bootchart * Note: performing a `sudo apt-get install` on the running image itself will not work == Creating an Image that Does Not Use SquashFs == The following steps describe how to create an image that uses ext3 for the rootfs rather than squashfs: * Close image-creator * Add the following line to the [installimage.menlow-lpia-ubuntu-hardy-ppa] section of ~/.image-creator/image-creator.cfg: * `use_squashfs=0` * Launch image-creator * Create an Install USB image. A Live image cannot be used as a Live image always uses squashfs. * Write the created image to a USB key *To verify that squashfs has been effectively disabled, make sure that the install.cfg file at the root of the usb key has the line: * `use_squashfs=0` * NOTE: An image that does not use squashfs will use significantly more space in the device's rw storage partition. Be sure that the device that you are installing the image on has a large enough rw storage paritition to accomodate the uncompressed filesystem. This usually means a rw storage partition that is > 1.3 GB. * NOTE: Installation will take longer than usual as files need to be individually decompressed and copied to disk == Misc Notes == * Current bootchart version for hardy as of 3/20: 0.9-0ubuntu7 = CrownBeach Bootcharts = === CrownBeach (C0 with disk drive) Using EXT3 for RootFs === * Average bootchart boottime: 51 seconds * Actual off to UI time: 2 minutes and 34 seconds * Used size of rw partition after install: 1.3 GB * [[attachment:hardy-20080320-1.png|Bootchart1]] * [[attachment:hardy-20080320-2.png|Bootchart2]] * [[attachment:hardy-20080320-3.png|Bootchart3]] * [[attachment:hardy-20080320-4.png|Bootchart4]] * [[attachment:hardy-20080320-5.png|Bootchart5]] === CrownBeach (C0 with disk drive) Using SquashFs for RootFs === * Average bootchart boottime: 48 seconds * Actual off to UI time: 2 minutes and 28 seconds * Used size of rw partition after install: 187 MB * [[attachment:hardy-20080320-squashfs-1.png|Bootchart1]] * [[attachment:hardy-20080320-squashfs-2.png|Bootchart2]] * [[attachment:hardy-20080320-squashfs-3.png|Bootchart3]] * [[attachment:hardy-20080320-squashfs-4.png|Bootchart4]] * [[attachment:hardy-20080320-squashfs-5.png|Bootchart5]] === CrownBeach (D1 with disk drive) Using EXT3 for RootFs === * Average bootchart boottime: 40 seconds * Actual off to UI time: 2 minutes 2 seconds * Used size of rw partition after install: 1.4 GB * [[attachment:hardy-20080320-D1-1.png|Bootchart1]] * [[attachment:hardy-20080320-D1-2.png|Bootchart2]] * [[attachment:hardy-20080320-D1-3.png|Bootchart3]] * [[attachment:hardy-20080320-D1-4.png|Bootchart4]] * [[attachment:hardy-20080320-D1-5.png|Bootchart5]] === CrownBeach (D1 with disk drive) Using SquashFs for RootFs === * Average bootchart boottime: 35 seconds * Actual off to UI time: 1 minute and 36 seconds * Used size of rw partition after install: 187 MB * [[attachment:hardy-20080320-squashfs-D1-1.png|Bootchart1]] * [[attachment:hardy-20080320-squashfs-D1-2.png|Bootchart2]] * [[attachment:hardy-20080320-squashfs-D1-3.png|Bootchart3]] * [[attachment:hardy-20080320-squashfs-D1-4.png|Bootchart4]] * [[attachment:hardy-20080320-squashfs-D1-5.png|Bootchart5]]