Mailinglist Archive: opensuse-autoinstall (87 mails)

< Previous Next >
Re: [opensuse-autoinstall] Adding checksums to an autoyast repository
  • From: Ian Grant <Ian.Grant@xxxxxxxxxxxx>
  • Date: Wed, 31 Jan 2007 13:03:50 +0000
  • Message-id: <20070131130350.5c275ed5@xxxxxxxxxxxxxxxxxxxxxx>
On Wed, 31 Jan 2007 12:04:37 +0000 I wrote:

> This is a bit OT, apologies in advance.
>
> This message is about two things. One is a question about adding
> checksums for certain files which checksums rug/zypper complains are
> missing and the other is that the instructions for
> create_update_source may need updating.

I found the answer in the comments at the top of the
create_update_source script. Here is what the instructions for this
ought to be:

# Set some variables
VERSION=10.2
BASE=/usr/groups/suse-$VERSION
KEYID=rpm-packager
RPMS=/global/src/RPMS/nmh/SUSE102/

# Build the repository
cd $BASE
create_update_source.sh ./
for arch in i386 i586 i686 x86_64 ; do
mkdir -p updates/suse/$arch
cp $RPMS/*.$arch.rpm updates/suse/$arch/
done
cd updates/suse/
create_package_descr -x setup/descr/EXTRA_PROV
cd setup/descr/
ls > directory.yast
for i in * ; do
echo -n "META SHA1 "
sha1sum $i | awk '{ORS=""; print $1}'
echo -n " "
basename $i
done >> $BASE/updates/content

# Sign it
cd $BASE/updates
gpg --export --armor $KEYID > content.key
gpg -b --sign --armor -u $KEYID content
ls > directory.yast
--
To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-autoinstall+help@xxxxxxxxxxxx

< Previous Next >
This Thread
References