From 0f2a3f1a4a2a5cc4b549a7a7f887519b5f053844 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Tue, 28 Jul 2020 20:54:56 +0300 Subject: 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' --- install/archiso | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/archiso b/install/archiso index 3006b5f..74948c7 100644 --- a/install/archiso +++ b/install/archiso @@ -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 } -- cgit v1.2.3-70-g09d2