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

Dan McGee dpmcgee at gmail.com
Sun May 6 18:37:11 EDT 2012


On Sun, May 6, 2012 at 9:59 AM, Tom Gundersen <teg at jklm.no> wrote:
> 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
I'm very confused as to why we would call the binary something
different in the initramfs. Shouldn't we not screw around with the
name?

> }
>
> 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