Adding *.sel to an installation source
For a future version I want to add a Personal.sel to the intsallation. For one reason or another it is not picked up by YaST during the installation, so I am unable to select it. What I did was copy /suse/setup/descr/Games-10.1-67.noarch.sel to /suse/setup/descr/Personal-10.1-67.noarch.sel and then changed all "Games" in the file to "Personal". Next I added the line Personal-10.1-63.noarch.sel to suse/setup/descr/selections However when I edit suse/setup/descr/selections I get the `no catalog found at ...` error, so I suppose it needs to be signed somewhere. However the only two *.key files are re-signed, so what am I missing? houghi -- Nutze die Zeit. Sie ist das Kostbarste, was wir haben, denn es ist unwiederbringliche Lebenszeit. Leben ist aber mehr als Werk und Arbeit, und das Sein wichtiger als das Tun - Johannes Müller-Elmau
On Mon, May 15, 2006 at 08:04:21AM +0200, houghi wrote:
For a future version I want to add a Personal.sel to the intsallation. For one reason or another it is not picked up by YaST during the installation, so I am unable to select it.
What I did was copy /suse/setup/descr/Games-10.1-67.noarch.sel to /suse/setup/descr/Personal-10.1-67.noarch.sel and then changed all "Games" in the file to "Personal".
Next I added the line Personal-10.1-63.noarch.sel to suse/setup/descr/selections
However when I edit suse/setup/descr/selections I get the `no catalog found at ...` error, so I suppose it needs to be signed somewhere. However the only two *.key files are re-signed, so what am I missing?
You need to have an entry with correct SHA1 sum in /content for them. Ciao, Marcus
On Mon, May 15, 2006 at 09:05:47AM +0200, Marcus Meissner wrote:
On Mon, May 15, 2006 at 08:04:21AM +0200, houghi wrote:
For a future version I want to add a Personal.sel to the intsallation. For one reason or another it is not picked up by YaST during the installation, so I am unable to select it.
What I did was copy /suse/setup/descr/Games-10.1-67.noarch.sel to /suse/setup/descr/Personal-10.1-67.noarch.sel and then changed all "Games" in the file to "Personal".
Next I added the line Personal-10.1-63.noarch.sel to suse/setup/descr/selections
However when I edit suse/setup/descr/selections I get the `no catalog found at ...` error, so I suppose it needs to be signed somewhere. However the only two *.key files are re-signed, so what am I missing?
You need to have an entry with correct SHA1 sum in /content for them.
I believe I have: META SHA1 117e6dcf986f8590d91b1908ee6cd92a223a0626 Personal-10.1-67.noarch.sel made with: echo "META SHA1 $(cd $CD_DIR/suse/setup/descr/ && sha1sum ${FILE})" >> \ $CD_DIR/content Actually I just added two following lines in makeSUSEdvd: cp /home/houghi/tmp/Personal-10.1-67.noarch.sel $CD_DIR/suse/setup/descr/. echo Personal-10.1-63.noarch.sel >> $CD_DIR/suse/setup/descr/selections houghi -- Nutze die Zeit. Sie ist das Kostbarste, was wir haben, denn es ist unwiederbringliche Lebenszeit. Leben ist aber mehr als Werk und Arbeit, und das Sein wichtiger als das Tun - Johannes Müller-Elmau
Hi
Am Mo 15.05.2006 08:04 schrieb houghi
On Mon, May 15, 2006 at 05:56:30PM +0200, Lars Rupp wrote:
Hi
Your quoting is very hard to read. Please use the standard > for it. I am now just guessing what is a quote and what is a new line.
Next I added the line Personal-10.1-63.noarch.sel to suse/setup/descr/selections
simpler (-: ls *.sel > suse/setup/descr/selections
Yeah, well, as long as it does nothing strange. ;-)
Add: create a new MD5SUMS file!
That is done as well.
However when I edit suse/setup/descr/selections I get the `no catalog found at ...` error, so I suppose it needs to be signed somewhere. However the only two *.key files are re-signed, so what am I missing?
- Add a new line to the content file (sha1sum...)
Check.
- copy your own gpg-key to /gpg-pubkey-*-*.asc
Mine is gpg-pubkey-*.asc and that does not give a problem if I don't edit suse/setup/descr/selections so I asume 'Check'
- add this key to the content file (line beginns with KEY SHA1...)
Check.
- rm content.asc content.key media.1/products.key media.1/products.asc
Check.
- create a new media.1/products and content file (like "houghis special 10.1 version"
Check.
- sign the content and the media.1/products file with your gpg key
Check.
- cp your /gpg-pubkey-*-*.asc to media.1/products.key content.key
Check.
Hoperfully I don't forget something...
That is what I thought as well. houghi -- Nutze die Zeit. Sie ist das Kostbarste, was wir haben, denn es ist unwiederbringliche Lebenszeit. Leben ist aber mehr als Werk und Arbeit, und das Sein wichtiger als das Tun - Johannes Müller-Elmau
On Mon, May 15, 2006 at 06:07:43PM +0200, houghi wrote: <snip> OK, I am going nuts here. For one reason or another, I can not edit /suse/setup/descr/selections and make a CD out of it that works. I just delete one line (Games...) and that is the difference I make. During installation it stops with the `No catalog found at ...` error and I can't seem to figure out what goes wrong, even after reading http://en.opensuse.org/Secure_Installation_Sources several times. The only thing I can think of is that somehow somewhere selections is being signed, making it wrong when I read it. I can't figure out where it is signed and concequently do not know how to sign it myself. I do a `sha1sum /suse/setup/descr/selections` and write the output to /content I am able to add *.sel files without a problem. I can add e.g makeSUSEdvd to a *.sel file and it is in there to install. I just can't change /suse/setup/descr/selections and I need to be able to do that if I want to add my own *.sel file. -- houghi http://houghi.org http://www.plainfaqs.org/linux/ http://www.netmeister.org/news/learn2quote.html
Today I went outside. My pupils have never been tinier...
On Mon, May 15, 2006 at 08:04:21AM +0200, houghi wrote:
For a future version I want to add a Personal.sel to the intsallation. For one reason or another it is not picked up by YaST during the installation, so I am unable to select it.
What I did was copy /suse/setup/descr/Games-10.1-67.noarch.sel to /suse/setup/descr/Personal-10.1-67.noarch.sel and then changed all "Games" in the file to "Personal".
Next I added the line Personal-10.1-63.noarch.sel to suse/setup/descr/selections
However when I edit suse/setup/descr/selections I get the `no catalog found at ...` error, so I suppose it needs to be signed somewhere. However the only two *.key files are re-signed, so what am I missing?
OK. I found what the problem seemed to be. The problem was that Yast did not know where to place something. Changing the "=Ord: " to a number that was NOT used solved the problem. I need to do some more testing to see how to implement it. and what can gow wrong. As this was not documented, perhaps other features are also not documented. My question now to SUSE: is there a number that is reserved for "=Ord: ", like "=Ord: 99" for endusers where we know that it won't be used by SUSE itself. If not, would it be possible to make such a reservation? That way people can add their own *.sel and do not have to worry wether or not it will clash with current existing =Ord:. My preference would be to have 99, as that will be the last one. If people want two, they must look and see what is available for the second one. -- houghi http://houghi.org http://www.plainfaqs.org/linux/ http://www.netmeister.org/news/learn2quote.html
Today I went outside. My pupils have never been tinier...
On Fri, May 19, 2006 at 10:49:52AM +0200, houghi wrote:
My question now to SUSE: is there a number that is reserved for "=Ord: ", like "=Ord: 99" for endusers where we know that it won't be used by SUSE itself.
If not, would it be possible to make such a reservation? That way people can add their own *.sel and do not have to worry wether or not it will clash with current existing =Ord:. My preference would be to have 99, as that will be the last one.
To clarify. Could perhaps best be a range. e.g. 900-999 That way it can be documented inside and outside SUSE, so that SUSE staff not by accident uses a order that is already used by a custome/user. and the customer/user knows it will not be clashing with something on a SUSE sytem. A range would be nice so that the customer can make several *.sels if he likes. Another question. Is there any real documentation on this outside of SUSE/Novell? All I found was http://www.novell.com/documentation/nld/index.html?page=/documentation/nld/n... or http://tinyurl.com/c3wpt and that talks about version 3.0. -- houghi http://houghi.org http://www.plainfaqs.org/linux/ http://www.netmeister.org/news/learn2quote.html
Today I went outside. My pupils have never been tinier...
On 19 May 2006 at 10:49, houghi wrote:
On Mon, May 15, 2006 at 08:04:21AM +0200, houghi wrote:
For a future version I want to add a Personal.sel to the intsallation. For one reason or another it is not picked up by YaST during the installation, so I am unable to select it.
What I did was copy /suse/setup/descr/Games-10.1-67.noarch.sel to /suse/setup/descr/Personal-10.1-67.noarch.sel and then changed all "Games" in the file to "Personal".
Next I added the line Personal-10.1-63.noarch.sel to suse/setup/descr/selections
However when I edit suse/setup/descr/selections I get the `no catalog found at ...` error, so I suppose it needs to be signed somewhere. However the only two *.key files are re-signed, so what am I missing?
OK. I found what the problem seemed to be. The problem was that Yast did not know where to place something. Changing the "=Ord: " to a number that was NOT used solved the problem. I need to do some more testing to see how to implement it. and what can gow wrong. As this was not documented, perhaps other features are also not documented.
My question now to SUSE: is there a number that is reserved for "=Ord: ", like "=Ord: 99" for endusers where we know that it won't be used by SUSE itself.
In awk something like this: awk 'BEGIN { FREE=0 } /^=Ord:/ { if ($2 > FREE) FREE=$2 } END { print "next available ord is", FREE + 1 }' *.sel [...] Ulrich P.S. My awk knowledge is a bit rusty...
On Fri, May 19, 2006 at 12:12:25PM +0200, Ulrich Windl wrote:
In awk something like this: awk 'BEGIN { FREE=0 } /^=Ord:/ { if ($2 > FREE) FREE=$2 } END { print "next available ord is", FREE + 1 }' *.sel
Thanks. I see what you mean. This is a good solution for makeSUSEdvd. I have found an even better solution: Negative numbers. :-) ORDER=`grep "^=Ord:" $RPMS_DIR/suse/setup/descr/*.sel| \ awk '{print $NF}'|sort -u|head -n 1` let ORDER=$ORDER-1 Now it will be always at the top of the selection. As people have added these on purpose, that is where it should be. An example. I added a directory with just makeSUSEdvd RPM in it: houghi@penne : cat 7/suse/setup/descr/makeSUSEdvd.sel =Ver: 4.0 =Sel: Personal noarch =Sum: Personal selection +Des: Personal added Selections -Des: =Cat: addon =Vis: true =Ord: $ORDER +Ins: makeSUSEdvd -Ins: http://houghi.org/shots/susescreen010.jpg It stil would be nice if there are fixed ranges to be used. -- houghi http://houghi.org http://www.plainfaqs.org/linux/ http://www.netmeister.org/news/learn2quote.html
Today I went outside. My pupils have never been tinier...
On Fri, May 19, 2006 at 01:24:24PM +0200, houghi wrote:
ORDER=`grep "^=Ord:" $RPMS_DIR/suse/setup/descr/*.sel| \ awk '{print $NF}'|sort -u|head -n 1` let ORDER=$ORDER-1
$CD_DIR not $RPMS_DIR -- houghi http://houghi.org http://www.plainfaqs.org/linux/ http://www.netmeister.org/news/learn2quote.html
Today I went outside. My pupils have never been tinier...
participants (4)
-
houghi
-
Lars Rupp
-
Marcus Meissner
-
Ulrich Windl