[arch-projects] [mkinitcpio][PATCH] init: add timestamp at start of initramfs if binary exists

Tom Gundersen teg at jklm.no
Sun May 6 10:59:38 EDT 2012


On Sun, May 6, 2012 at 4:54 PM, Tom Gundersen <teg at 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:


More information about the arch-projects mailing list