Am 07/30/2012 03:11 PM, schrieb Daniel Rahn:
On Mon, Jul 30, Daniel Spannbauer wrote:
gpg -u ds@marco.de --export >> installkey.gpg
installkey.gpg is a keyring and not a textfile, so above command destroys the keyring.
Try this:
gpg --import gpg-$KEY_ID.gpg --keyring installkey.gpg
Regards,
Daniel
Hello Daniel,
now I did the following:
-------------------------------------
echo "initall.key aus initrd raus....."
cpio -i -F $INITRD.uncomp installkey.gpg
echo "Schlüssel exportieren"
gpg --export -u $KEY_ID > gpg-$KEY_ID.gpg
gpg --export -a -u $KEY_ID > gpg-pubkey-$KEY_ID.asc
echo "Schlüssel rein"
echo "gpg-$KEY_ID.gpg" | cpio -o -H newc -A -F $INITRD.uncomp
echo "install.key erweitern"
#gpg -u ds@marco.de --export >> installkey.gpg
gpg --import --keyring ./installkey.gpg gpg-$KEY_ID.gpg
echo "installkey wieder in initrd"
echo "installkey.gpg" | cpio -o -H newc -A -F $INITRD.uncomp
echo "komprimieren"
gzip --best <$INITRD.uncomp >$INITRD
----------------------------------------
I get the following Output:
----------------------------------------
install.key erweitern
gpg: key 7B6AC518: "Daniel Spannbauer