Mailinglist Archive: opensuse-factory (757 mails)

< Previous Next >
Re: [opensuse-factory] Re: makeSUSEdvd error
  • From: Marcus Meissner <meissner@xxxxxxx>
  • Date: Mon, 8 May 2006 16:31:13 +0200
  • Message-id: <20060508143111.GA19182@xxxxxxx>
I have identified and fixed the problem.

The key needs to be added to the initial ramdisk
of the CDD/DVD, so some extra magic is necessary.

I have attached the patch to make it work,
apply with
patch makeSUSEdvd < msd.pat

Ciao, Marcus
--- /suse/meissner/makeSUSEdvd 2006-05-08 12:13:14.000000000 +0200
+++ /root/makeSUSEdvd 2006-05-08 15:52:44.000000000 +0200
@@ -465,9 +467,34 @@
cd $CD_DIR
}

+PUT_KEY_IN_INITRD()
+{
+ for initrd in $CD_DIR/boot/*/loader/initrd
+ do
+ echo "Initrd is $initrd"
+ if [ ! -f $initrd ];
+ then
+ echo "No initrd found?"
+ MAKE_CLEAN
+ exit 1
+ fi
+ gunzip < $initrd > $initrd.uncomp
+ mkdir tmpinitrd
+ pushd tmpinitrd
+ cpio -idm <$initrd.uncomp
+ gpg --export -u $LOCAL_KEY > $LOCAL_KEY.gpg
+ find|cpio -o -H newc > $initrd.uncomp.new
+ popd
+ gzip --best < $initrd.uncomp.new > $initrd
+ rm -rf tmpinitrd
+ rm $initrd.uncomp $initrd.uncomp.new
+ done
+}
+
#SIGN_CONTENT : Signing the media for 10.1 on
SIGN_CONTENT ()
{
+ PUT_KEY_IN_INITRD
#Remove keys in content
grep -v ^META $CD_DIR/content > $CD_DIR/content.bak
mv $CD_DIR/content.bak $CD_DIR/content
< Previous Next >
List Navigation