Originally Posted by
Dies
That's why I said "Unless I misunderstood".
It sounded to me like you made some changes, burned the DVD and then decided to regenerate repodata on the DVD itself, which of course is not possible.
If you're saying that createrepo failed when you ran it prior to creating the ISO then I guess we need to see your scripts/commands used, output from the failed command, etc.
Sorry, I was doing all this on a copy of the ISO on my machine. I supposed I should have been cleared on that.
I mounted the ISO loopback, rsync'ed the contest to a work directory (inc. .discinfo and .treeinfo files), switched into that directory, removed some RPMs, replaced others with updated RPMs and added some new ones. I then ran 'createrepo -d Packages' which created the new directory 'Packages/repodata'. I moved those files into the original 'repodata' directory and re-rolled the ISO.
The main difference in that the pre-existing 'repodata' files had (signatures?) prefixed to their name:
Code:
[root@an-node02 an.f13]# ls -lah repodata/
total 14M
drwxr-sr-x. 2 digimer digimer 4.0K May 12 21:06 .
drwxr-xr-x. 8 digimer digimer 4.0K Jun 18 20:49 ..
-rw-r--r--. 1 digimer digimer 3.0M May 12 21:06 2afe2423e15169c6cb25a50c0f4f669946051200ae14a8ec048c88460a7ee5a7-filelists.sqlite.bz2
-rw-r--r--. 1 digimer digimer 388K May 12 21:06 86e11f09f6b6528cf78309fce8df2a7665c7988647612fea06cd7cef0bd68a8d-Fedora-13-comps.xml.gz
-rw-r--r--. 1 digimer digimer 1.2M May 12 21:06 8b42560c067f508d2f06b8629da5294bb8b3ff6d0816cb34f0ceaa739d009917-other.sqlite.bz2
-rw-r--r--. 1 digimer digimer 2.3M May 12 21:06 93e7d751fdd957e27f1ba4235542b094c752df811da5119c8540190fb20ed291-primary.sqlite.bz2
-rw-r--r--. 1 digimer digimer 2.7M May 12 21:06 a6f2da1b4489e6e148c558921da9df74d6c44cc31d734849a74307d401d61115-filelists.xml.gz
-rw-r--r--. 1 digimer digimer 1.3M May 12 21:06 b16205e5d40dbb1097aaab69cc243aab78ce66ac5cb1824095237b2e5533e765-other.xml.gz
-rw-r--r--. 1 digimer digimer 1.7M May 12 21:06 fce31f091be8211a394d8942fcf4f6cbeffa3d40d87b61af55a97b1a88b46987-Fedora-13-comps.xml
-rw-r--r--. 1 digimer digimer 1.2M May 12 21:06 fd11a617a8e5dc6fe37efd32210c794f4656689f00bbe78a62f6dcf850feaa87-primary.xml.gz
-rw-r--r--. 1 digimer digimer 4.1K May 12 21:06 repomd.xml
-r--r--r--. 1 digimer digimer 2.6K May 12 21:06 TRANS.TBL
The contents of the generated 'Packages/repodata' on the other hand looked like this:
Code:
[root@an-node02 an.f13]# createrepo -d Packages/
1337/1337 - m4-1.4.13-4.fc12.x86_64.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
Generating sqlite DBs
Sqlite DBs complete
[root@an-node02 an.f13]# ls -lah Packages/repodata/
total 4.7M
drwxr-sr-x. 2 root digimer 4.0K Jun 18 20:56 .
drwxr-sr-x. 3 digimer digimer 88K Jun 18 20:56 ..
-rw-r--r--. 1 root digimer 1.1M Jun 18 20:56 filelists.sqlite.bz2
-rw-r--r--. 1 root digimer 874K Jun 18 20:56 filelists.xml.gz
-rw-r--r--. 1 root digimer 576K Jun 18 20:56 other.sqlite.bz2
-rw-r--r--. 1 root digimer 620K Jun 18 20:56 other.xml.gz
-rw-r--r--. 1 root digimer 964K Jun 18 20:56 primary.sqlite.bz2
-rw-r--r--. 1 root digimer 515K Jun 18 20:56 primary.xml.gz
-rw-r--r--. 1 root digimer 2.7K Jun 18 20:56 repomd.xml
I am guessing that there is some sort of signing option that the man page seems to not document, or some extra step that anaconda requires.
Thanks!
---------- Post added at 08:59 PM CDT ---------- Previous post was at 08:57 PM CDT ----------
Originally Posted by
glennzo
Wouldn't you use something like createrepo --update ??
I tried that just now with the following results:
Code:
[root@an-node02 an.f13]# createrepo --update Packages
Previous repo file missing:
1337/1337 - m4-1.4.13-4.fc12.x86_64.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata
[root@an-node02 an.f13]# ls -lah Packages/repodata/
total 2.1M
drwxr-sr-x. 2 root digimer 4.0K Jun 18 20:58 .
drwxr-sr-x. 3 digimer digimer 88K Jun 18 20:58 ..
-rw-r--r--. 1 root digimer 874K Jun 18 20:58 filelists.xml.gz
-rw-r--r--. 1 root digimer 620K Jun 18 20:58 other.xml.gz
-rw-r--r--. 1 root digimer 515K Jun 18 20:58 primary.xml.gz
-rw-r--r--. 1 root digimer 1.4K Jun 18 20:58 repomd.xml
Notice it says that it couldn't find the old repo file? I've tried before using '-c repodata', but it then puts the output in 'repodata/repodata'...
Thank you, also. It's nice having people try to help after so little luck!
Digi