Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authornl6720 <nl6720@gmail.com>2020-07-28 20:54:56 +0300
committernl6720 <nl6720@gmail.com>2020-07-29 18:05:16 +0300
commit0f2a3f1a4a2a5cc4b549a7a7f887519b5f053844 (patch)
treedc7491f9bdc54f8c704f1ad596ba30d33fc498c1 /install
parent3b00a94ec50320cae76af92f94f6aa29c4dbcb67 (diff)
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'
Diffstat (limited to 'install')
-rw-r--r--install/archiso2
1 files changed, 1 insertions, 1 deletions
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
}