Message info
 
To:Arch Linux projects development discussion From:Dan McGee Subject:Re: [arch-projects] [mkinitcpio][PATCH] init: add timestamp at start of initramfs if binary exists Date:Sun, 6 May 2012 17:37:11 -0500
 

On Sun, May 6, 2012 at 9:59 AM, Tom Gundersen <teg@jklm.no> wrote:
> 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
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: