On Mon, 14 Sep 2009, Vagrant Cascadian wrote:
> On Tue, Aug 18, 2009 at 05:31:41PM +0200, Raphaël Hertzog wrote:
> > debian-cd allows one to build an etch CD using the lenny installer by
> > using a setup like this:
> > export CODENAME=etch
> > export DI_CODENAME=lenny
> ...snip...
> > When DI_CODENAME is set and differs from CODENAME, simple-cdd should
> > install all udebs in dists/$DI_CODENAME/main/debian-installer/ (in the
> > mirror) as that's the place where debian-cd will look for them. This is
> > not the case currently.
>
> > In the same spirit, it's also a good idea to initialize your di_codename
> > with ${DI_CODENAME:-$CODENAME} to avoid mismatches, otherwise one has to
> > set both variables in the configuration. Or you could directly rename
> > di_codename into DI_CODENAME.
>
> the last two commits (475 and 476) to simple-cdd-devel should hopefully
> address
> these issues, and hopefully doesn't break anything else. please test, if you
> can:
>
> bzr get http://cdd.alioth.debian.org/bzr/simple-cdd/simple-cdd-devel
It does not work:
Error parsing
/home/rhertzog/x/slis/trunk/cd-build/tmp//mirror/conf/distributions, line 8:
Second appearance of 'Codename' in the same chunk!
You miss an empty line between the two blocks:
$ diff -u /home/rhertzog/tmp/simple-cdd-devel/tools/mirror/reprepro
/usr/share/simple-cdd/tools/mirror/reprepro
--- /home/rhertzog/tmp/simple-cdd-devel/tools/mirror/reprepro 2009-09-17
15:38:47.000000000 +0200
+++ /usr/share/simple-cdd/tools/mirror/reprepro 2009-09-17 15:52:38.000000000
+0200
@@ -31,6 +31,7 @@
EOF
if [ "$CODENAME" != "$DI_CODENAME" ]; then
cat << EOF >> $conf/distributions
+
Codename: $DI_CODENAME
Architectures: $ARCHES
Components: $mirror_components
@@ -150,7 +151,7 @@
reprepro $reprepro_opts --ignore=wrongdistribution includedeb
$CODENAME $p
;;
*.udeb)
- reprepro $reprepro_opts --ignore=wrongdistribution includeudeb
$CODENAME $p
+ reprepro $reprepro_opts --ignore=wrongdistribution includeudeb
$DI_CODENAME $p
;;
*)
echo "unknown package type: $p"
After that, it seems to work if you have an SVN version of debian-cd (upcoming
3.1.3). Otherwise it tries to look for syslinux in $DI_CODENAME and fails.
The second half is needed if you have custom udebs in local_packages, otherwise
they are ignored in the process.
Cheers,
--
Raphaël Hertzog
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]