Re: cloop from srcatch using debootstrap & knoppix debs

mammique <[email protected]> Sun, 25 Jul 2004 23:51:55 +0200
Newsgroups gmane.linux.debian.knoppix,gmane.linux.debian.devel.custom
Message-ID <1090792315.4176.12.camel@PlasticBertrand>
Le dim 25/07/2004 =E0 18:56, Fabian Franz a =E9crit :
> Am Sonntag, 25. Juli 2004 18:02 schrieb mammique:
> > Hi,
> >
> > is there a way to create a minimal knoppix system (to compress into a
> > cloop) using debootstrap & knoppix debs :
>=20
> Yes,
>=20
> since yesterday ;-) there is:
>=20

Ha ! Amazing ! :-)

> It is still experimental and won't install X:
>=20
> Second: I won't take any warranty for any damage caused by this scripts=
. Use=20
> them with caution on your own risk.
>=20
> - Download all files in http://debian.tu-bs.de/knoppix/debian/knoppify/
> - Extract the templates in the same dir
> - Make a new partition say /dev/hda8 (at least 6 GB should do), mount i=
t to=20
> say mount /dev/hda8 /mnt/hda8 and debootstrap a basic debian to it=20
> (debootstrap sarge /mnt/hda8), run base-config
>=20

Ok, is it possible to do it in a normal directory ?

> - Change templates/ files to suit your needs (resolv.conf, fstab,=20
> sources.list)
> - Run ./knoppify.sh /mnt/hda8
>=20
> - Download master.iso from=20
> http://debian.tu-bs.de/knoppix/debian/sarge-live-base/master.iso
>=20
> - mount -o loop master.iso /mnt
> - mkdir /mnt/hda8/KNOPPIX.build/master
> - cp -a /mnt/* /mnt/hda8/KNOPPIX.build/master/
> - umount /mnt
>=20
> Now chroot into /mnt/hda8
> Do:
>=20
> /KNOPPIX.build/Knoppix-3.4.mkcompressed /KNOPPIX.build/master
>=20
> (this are in fact Klaus' scripts)
>=20
> The command will create /mnt/hda8/KNOPPIX.build/master.iso.
>=20
> To install X do:
>=20
> apt-get install x-window-system-core xsession-initscript-knoppix=20
> xsession-knoppix rxvt-beta locales twm
>=20
> useradd knoppix
>=20
> (remove passwords from /etc/shadow again, or leave it: your decision)
>=20
> Change /etc/X11/Xsession.d/45xsession to include:
>=20
> set -x
> set +e
>=20
> (You could also install the knoppix specific profile files)
>=20
> as first commands to turn off "quit on error" and turn on debugging whi=
ch you=20
> can see in /home/knoppix/.xsession-errors.
>=20
> I did this sucessfully this night. ;-)
>=20

I'll try it as soon as possible (tonight maybe)

> We (me and Danix.cz developers) hope that we can create modules and scr=
ipts=20
> for X as well to make setup of your own basic live CD even easier.
>=20

Do you know iBuild ? I'm working with them for this kind of things. It
may be very usefull.

> Also of course there are still scripts missing to create the miniroot.
>=20

Ha ! I allready made that, you should take a look at my scripts, it's
dirt (will be rewriten from scratch for iBluid), but it works :

Look at "boot" parameter :

# ./garbure boot

I also makes the main & the help screens (F2, F3) & bootsplash.

http://industrie.dyndns.org/soft/garbure/garbure-20040725.tar.gz

> cu
>=20
> Fabian

Thank you very much.

Best regards.

Camille.

>=20
> PS: To unknoppify the system for an installation or similar, just do:
>=20
> cp -af /etc/inittab.debian /etc/inittab
>=20
> done.
>=20
> _______________________________________________
> debian-knoppix mailing list
> [email protected]
> http://mailman.linuxtag.org/mailman/listinfo/debian-knoppix