diff options
| author | David Runge <dvzrv@archlinux.org> | 2021-05-01 16:51:28 +0200 |
|---|---|---|
| committer | David Runge <dvzrv@archlinux.org> | 2021-05-01 16:56:53 +0200 |
| commit | cc735dbbfc79e14548db7378a85380dfbf3513ff (patch) | |
| tree | cbefd662e9b20288a7748ccc0e38eefdd4ada53e | |
| parent | 73e3ccdb5900ca3b7259a79cbfff8b5dc61b63e2 (diff) | |
| download | archiso-cc735dbbfc79e14548db7378a85380dfbf3513ff.tar.gz archiso-cc735dbbfc79e14548db7378a85380dfbf3513ff.tar.bz2 | |
Force PGP signature file extension
archiso/mkarchiso:
Force the file extension in use for the PGP signatures of the rootfs to always be .sig.
When gnupg's 'armor' configuration option is used, the output otherwise defaults to using .asc.
As the verification hook in mkinitcpio-archiso expects the .sig file extension, verifying the rootfs will fail in that
scenario.
| -rwxr-xr-x | archiso/mkarchiso | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 939a7a3..f4af2ad 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -227,10 +227,11 @@ _mkchecksum() { _mksignature() { _msg_info "Signing SquashFS image..." cd -- "${isofs_dir}/${install_dir}/${arch}" + # always use the .sig file extension, as that is what mkinitcpio-archiso's hooks expect if [[ -e "${isofs_dir}/${install_dir}/${arch}/airootfs.sfs" ]]; then - gpg --detach-sign --default-key "${gpg_key}" airootfs.sfs + gpg --output airootfs.sfs.sig --detach-sign --default-key "${gpg_key}" airootfs.sfs elif [[ -e "${isofs_dir}/${install_dir}/${arch}/airootfs.erofs" ]]; then - gpg --detach-sign --default-key "${gpg_key}" airootfs.erofs + gpg --output airootfs.erofs.sig --detach-sign --default-key "${gpg_key}" airootfs.erofs fi cd -- "${OLDPWD}" _msg_info "Done!" |
