Message info
 
To:arch-projects@archlinux.org From:Tom Gundersen Subject:Re: [arch-projects] [mkinitcpio][PATCH] init: add timestamp at start of initramfs if binary exists Date:Sun, 6 May 2012 16:59:38 +0200
 

On Sun, May 6, 2012 at 4:54 PM, Tom Gundersen <teg@jklm.no> wrote:
> This will allow us to tell how much time was spent in the initramfs,
> which might be good for working on optimizations and making sure we
> don't regress.

If this is accepted, I suggest adding the following install hook (call
it "timestamp" or something like that) to the systemd package:




#!/bin/bash

build() {
add_binary /usr/lib/systemd/systemd-timestamp /usr/bin/timestamp
}

help() {
cat <<HELPEOF
When booted with systemd this allows systemd-analyze to tell how much time
was spent in the initramfs.
HELPEOF
}

# vim: set ft=sh ts=4 sw=4 et: