implement copying of pacman gpg files to installed system

This commit is contained in:
Tobias Powalowski 2012-08-14 13:27:47 +02:00
parent b24ae6f85e
commit 12eedb5d58

View file

@ -2987,6 +2987,7 @@ install_packages() {
auto_fstab
auto_mdadm
auto_luks
auto_pacman
# tear down the chroot environment
chroot_umount
}
@ -3070,6 +3071,21 @@ auto_network()
fi
}
# Pacman signature check is enabled by default
# add gnupg pacman files to installed system
# in order to have a working pacman on installed system
auto_pacman()
{
if ! [[ -d ${DESTDIR}/etc/pacman.d/gnupg ]]; then
DO_PACMAN_GPG=""
DIALOG --yesno "Would you like to copy pacman's GPG files to installed system?\nDuring boot pacman GPG entropy was generated by haveged,\nif you need your own entropy answer NO." 0 0 && DO_PACMAN_GPG="yes"
if [[ "${DO_PACMAN_GPG}" = "yes" ]]; then
DIALOG --infobox "Copy /etc/pacman.d/gnupg directory to ${DESTDIR}/etc/pacman.d/gnupg ..." 0 0
cp -ar /etc/pacman.d/gnupg ${DESTDIR}/etc/pacman.d 2>&1
fi
fi
}
# donetwork()
# Hand-hold through setting up networking
#