archiso/initcpio/install/archiso: fix GnuPG home directory permissions

Gets rid of a gpg warning:
gpg: WARNING: unsafe permissions on homedir '/tmp/mkinitcpio.*/root/gpg'
This commit is contained in:
nl6720 2020-07-28 20:54:56 +03:00
parent e264b44682
commit b8dc4484e8
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369

View File

@ -24,7 +24,7 @@ build() {
add_file /usr/lib/udev/rules.d/95-dm-notify.rules
add_file /usr/lib/initcpio/udev/11-dm-initramfs.rules /usr/lib/udev/rules.d/11-dm-initramfs.rules
if [[ $ARCHISO_GNUPG_FD ]]; then
mkdir -p "$BUILDROOT/gpg"
mkdir -m 0700 -- "$BUILDROOT/gpg"
gpg --homedir "$BUILDROOT/gpg" --import <& "$ARCHISO_GNUPG_FD"
fi
}