Commit 0f2a3f1a authored by nl6720's avatar nl6720
Browse files

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'
parent 3b00a94e
...@@ -24,7 +24,7 @@ build() { ...@@ -24,7 +24,7 @@ build() {
add_file /usr/lib/udev/rules.d/95-dm-notify.rules 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 add_file /usr/lib/initcpio/udev/11-dm-initramfs.rules /usr/lib/udev/rules.d/11-dm-initramfs.rules
if [[ $ARCHISO_GNUPG_FD ]]; then if [[ $ARCHISO_GNUPG_FD ]]; then
mkdir -p "$BUILDROOT/gpg" mkdir -m 0700 -- "$BUILDROOT/gpg"
gpg --homedir "$BUILDROOT/gpg" --import <& "$ARCHISO_GNUPG_FD" gpg --homedir "$BUILDROOT/gpg" --import <& "$ARCHISO_GNUPG_FD"
fi fi
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment