[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [debian-knoppix] Howto update Knoppix cleanly for re-mastering?



Hallo Klaus,

I tried to write a script, that turns the Knoppix-CD in an ftp-server
with all *.deb files from the CD, using dpkg-repack. It needs 650 MB
diskspace.

Unfortunaty the package loop-aes does not repack. I tried to get it from
the internet, but could not google it somewhere. So I looked up the
maintainer in the package, it is Klaus Knopper;-)

8<- - - - - - - - - ->8
root@ttyp1[mnt]# dpkg-repack --root=/KNOPPIX loop-aes
dpkg-repack: File not found: /KNOPPIX/package diverts others to:
/lib/modules/2.4.20-xfs/kernel/drivers/block/loop.o.distrib
dpkg-deb: baue Paket »loop-aes« in »./loop-aes_1.6i-1_i386.deb«.
dpkg-repack: Errors were encountered in processing.
dpkg-repack: The package may not unpack correctly.
root@ttyp1[mnt]# ls -l loop-aes_1.6i-1_i386.deb 
-rw-r--r--    1 root     root        45672 2003-05-19 15:21
loop-aes_1.6i-1_i386.deb
8<- - - - - - - - - ->8

The error messages does not help me to fix the problem. /KNOPPIX/package
does not exist, loop.o.distrib does. Is there a bug in the deb package
you can fix, or can I download loop-aes_1.6i-1_i386.deb from somewhere
(google was helpless)?

The script is attached, if someone is interested, but it has never been
tested!!!! So use apt-u* --dry-run, that works:-). 

Thanks for your help

greetings 

Achim


> > I set up my own Knoppix re-mastering area using Knoppix 3.2
> > of 2003-05-03.  I installed additional packages using
> > apt-get and removed even more.  Now I like to benefit from
> > the improvements in newer Knoppix versions (now:
> > 2003-05-16).  Is there an apt-get repository for the Knoppix
> > specific packages?
> 
> I'm still working on it. My first amateurish attempt (work in
> progress) is at http://developer.linuxtag.net/knoppix/ . The
> package sources are also there, but I forgot to copy the
> .dsc files, so the source index has not been generated properly yet.
> 
> > If not, is there a good way to update my
> > installation area?
> 
> You can always create packages from a current Knoppix-CD using
> dpkg-repack --root=/KNOPPIX/ packagename
> 
> > Btw: Is it planned to put these packages into Debian
> > unstable some day?
> 
> I don't know if somebody plans to do this. cloop is already there,
> thanks to Eduard Bloch. It seems to be a very painful task, though,
> to meet the Debian package guidelines, at least concerning kernel
> modules, as far as I have observed.
> 
> > Btw2: Is a jigdo download available or planned for Knoppix?
> 
> I still don't think this would be useful for a compressed image.
#!/bin/sh
#=============================================================================
# VERSION : 0.1
# LICENCE : GPL
# PURPOSE : Makes a ftp DEBIAN installserver from Knoppix-CD
# DATE    : 2003-05-12
# REVISION: 2003-05-19
# AUTHOR  : Hans-Achim Unger 
# eMAIL   : Achim.Unger@web.de
# USAGE   : $0  
# SW      : BASH
# SYSTEM  : LINUX
# INIFILE : none
#=============================================================================
# |[]{}\'{print $0}'
head -n 14 $0 | tail -n13
#
#  boot knoppix from CD  ;-)
#
#  mount hda
#
sudo su
mkdir /user
mount /dev/hda2 /user ######### edit this ! ################
#
mkdir -p /user/ftp/pub/debian/dists/stable/main/binary-i386
cd       /user/ftp/pub/debian/dists/stable/main/binary-i386
#
#  getselections 
#
dpkg --get-selections  | grep install| awk '{print $1}' > installed-files.list
#
#  dpkg-repack 2 ftp dir  takes 70 min on 1,7MHz Laptop, du -s : 649658  kByte
#                        ... losts of errors: file not found!! (mostly language related!)
#
for f in $( cat installed-files.list)
do
	dpkg-repack --root=/KNOPPIX $f
done
dpkg-scanpackages ./ /dev/null | gzip > Packages.gz
#
#
#  start ftpserver
#
echo "ftp:x:108:65534::/user/ftp:/bin/false" >> /etc/passwd
echo 'ftp:!:12007:0:99999:7:::'                  >> /etc/shadow
rm  /etc/ftpusers /etc/hosts.allow /etc/hosts.deny # better: setup /etc/hosts.allow /etc/hosts.deny correctly
/etc/init.d/inetd start
echo "############ Update on client ###################"
echo "in /etc/apt/sources.list: deb ftp://192.168.10.11/pub/debian/dists/stable/main/binary-i386 ./ "
echo apt-get --dry-run update
echo apt-get --dry-run upgrade

#=========  T H E   E N D  ===================================================

Reply to: