[arch-releng] [archiso] [PATCH] Put pacman keyring into a tmpfs and make the rc.d initialization one-shot

Thomas Bächler thomas at archlinux.org
Sat Aug 25 13:06:40 EDT 2012


Am 25.08.2012 18:02, schrieb Gerardo Exequiel Pozzi:
>> --- /dev/null
>> +++ b/configs/releng/root-image/etc/fstab
>> @@ -0,0 +1,6 @@
>> +#
>> +# /etc/fstab: static file system information
>> +#
>> +# <file system> <dir>               <type> <options>    <dump> <pass>
>> +tmpfs           /tmp                tmpfs  nodev,nosuid 0      0
>> +keyring         /etc/pacman.d/gnupg tmpfs  mode=0755    0      0
> 
> Or maybe with tmpfiles.d
> 
> d /run/pacman.d/gnupg - - - - -
> L - - - - /etc/pacman.d/gnupg

Fine by me.

>> diff --git a/configs/releng/root-image/etc/rc.d/pacman-init
>> b/configs/releng/root-image/etc/rc.d/pacman-init
>> index bbbd719..20005c8 100755
>> --- a/configs/releng/root-image/etc/rc.d/pacman-init
>> +++ b/configs/releng/root-image/etc/rc.d/pacman-init
>> @@ -7,7 +7,6 @@ case "$1" in
>>       start)
>>           stat_busy "Initializing pacman keyring"
>>           if { pacman-key --init && pacman-key --populate archlinux; }
>> &>/dev/null; then
>> -            add_daemon pacman-init
>>               stat_done
>>           else
>>               stat_fail
>> @@ -16,14 +15,9 @@ case "$1" in
>>           ;;
>>         stop)
>> -        stat_busy "Removing pacman keyring"
>> -        rm -rf /etc/pacman.d/gnupg
>> -        rm_daemon pacman-init
>> -        stat_done
>>           ;;
>>         restart)
>> -        $0 stop
>>           $0 start
>>           ;;
>>   
> 
> Well I was thinking in removing all initscripts stuff in few days, since
> there are no objections in my RFC patches.

Pierre had some concerns regarding the network setup, so I'll force him
to comment on that by hitting him repeatedly until he writes an email.

The same can be achieved with a oneshot systemd unit - what's important
is that the pacman-init "stop" on shutdown makes no sense.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 897 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.archlinux.org/pipermail/arch-releng/attachments/20120825/1f1671c4/attachment.asc>


More information about the arch-releng mailing list