mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50:37 +02:00
implement copying of pacman gpg files to installed system
This commit is contained in:
parent
b24ae6f85e
commit
12eedb5d58
1 changed files with 16 additions and 0 deletions
|
@ -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
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue