Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2016-02-13 10:07:28 +0100
committerGerardo Exequiel Pozzi <vmlinuz386@gmail.com>2016-02-28 17:09:08 -0300
commit4dd9aaa3a18426a2c7f81364212f84e9022f0f11 (patch)
tree730d40e65cc330f7a1fa2e982139331ec7a63d75 /install
parent98c50484705c3e24fc907187e71d5bd03cf6fe5b (diff)
Add gpg to the image and optionally create a keyring
If the ARCHISO_GNUPG_FD environment variable is set, its contents will be interpreted as an open file descriptor and its contents will be used to create a keyring in the initramfs in /gpg.
Diffstat (limited to 'install')
-rw-r--r--install/archiso5
1 files changed, 5 insertions, 0 deletions
diff --git a/install/archiso b/install/archiso
index 300dfef..90bb9bc 100644
--- a/install/archiso
+++ b/install/archiso
@@ -14,11 +14,16 @@ build() {
add_binary losetup
add_binary mountpoint
add_binary truncate
+ add_binary gpg
add_file /usr/lib/udev/rules.d/60-cdrom_id.rules
add_file /usr/lib/udev/rules.d/10-dm.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
+ if [[ $ARCHISO_GNUPG_FD ]]; then
+ mkdir -p "$BUILDROOT$dest"/gpg
+ gpg --homedir "$BUILDROOT$dest"/gpg --import <&$ARCHISO_GNUPG_FD
+ fi
}
# vim: set ft=sh ts=4 sw=4 et: