Commit d7e790df authored by Pierre Schmitz's avatar Pierre Schmitz Committed by Gerardo Exequiel Pozzi
Browse files

Initialize pacman keyring on bootup

This will allow users to install packages within the live environment.
We use the haveged daemon to increase entropy from CPU timings.

See http://www.issihosts.com/haveged/

 for details.
Signed-off-by: Pierre Schmitz's avatarPierre Schmitz <pierre@archlinux.de>
Signed-off-by: default avatarGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
parent dd368b5a
......@@ -14,6 +14,7 @@ efibootmgr
elinks
gnu-netcat
gptfdisk
haveged
hdparm
ipw2100-fw
ipw2200-fw
......
......@@ -14,6 +14,7 @@ efibootmgr
elinks
gnu-netcat
gptfdisk
haveged
hdparm
ipw2100-fw
ipw2200-fw
......
......@@ -30,4 +30,4 @@ USELVM="no"
HOSTNAME="archiso"
DAEMONS=(hwclock syslog-ng)
DAEMONS=(hwclock syslog-ng haveged pacman-init)
#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions
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
exit 1
fi
;;
stop)
stat_busy "Removing pacman keyring"
rm -rf /etc/pacman.d/gnupg
rm_daemon pacman-init
stat_done
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
esac
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment