[arch-releng] [PATCH 2/5] [configs/releng] Add pacman-init.service

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Sun Aug 19 00:33:09 EDT 2012


On 08/19/2012 01:23 AM, Gerardo Exequiel Pozzi wrote:
> On 08/19/2012 01:11 AM, Dave Reisner wrote:
>> On Sun, Aug 19, 2012 at 12:57:17AM -0300, Gerardo Exequiel Pozzi wrote:
>>> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
>>> ---
>>>   .../root-image/usr/lib/systemd/system/pacman-init.service | 13 
>>> +++++++++++++
>>>   1 file changed, 13 insertions(+)
>>>   create mode 100644 
>>> configs/releng/root-image/usr/lib/systemd/system/pacman-init.service
>>>
>>> diff --git 
>>> a/configs/releng/root-image/usr/lib/systemd/system/pacman-init.service 
>>> b/configs/releng/root-image/usr/lib/systemd/system/pacman-init.service
>>> new file mode 100644
>>> index 0000000..58a9271
>>> --- /dev/null
>>> +++ 
>>> b/configs/releng/root-image/usr/lib/systemd/system/pacman-init.service
>>> @@ -0,0 +1,13 @@
>>> +[Unit]
>>> +Description=Initializes Pacman keyring
>>> +Wants=haveged.service
>> There should be an 'After=haveged.service' here as well
> OK thank you, this was my first unit :P

Maybe can be a good idea to start also after ntpd ? to ensure that time 
on machine is right...

>>
>>> +
>>> +[Service]
>>> +Type=oneshot
>>> +RemainAfterExit=yes
>>> +ExecStart=/usr/bin/pacman-key --init
>>> +ExecStart=/usr/bin/pacman-key --populate archlinux
>>> +ExecStop=/bin/rm -rf /etc/pacman.d/gnupg
>>> +
>>> +[Install]
>>> +WantedBy=multi-user.target
>>> -- 
>>> 1.7.11.5
>>>
>
>


-- 
Gerardo Exequiel Pozzi
\cos^2\alpha + \sin^2\alpha = 1



More information about the arch-releng mailing list