From 12eedb5d58c10a264c25ffc66a0508a3fbba984c Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Tue, 14 Aug 2012 13:27:47 +0200 Subject: [PATCH] implement copying of pacman gpg files to installed system --- usr/share/archboot/installer/setup | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/usr/share/archboot/installer/setup b/usr/share/archboot/installer/setup index f2b742799..53dd8c288 100755 --- a/usr/share/archboot/installer/setup +++ b/usr/share/archboot/installer/setup @@ -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 #