creating custmized Debian CD

News and discussion about development of the Debian OS itself

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-29 20:11

some update:
Code: Select all
lh_config && lh_build

gave me a binary.iso in Lenny. Now I try with the installer...
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby Bulkley » 2010-05-29 20:19

Something that might be causing you trouble is that when you do #lh config it creates a /config/ directory and stuffs it full. This can interfere with your next attempt which is the point of lh clean. However, I often find that it helps to remove the /config/ directory and all its contents.
Bulkley
 
Posts: 5930
Joined: 2006-02-11 18:35

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-29 20:26

Thanks for your advise Every new attempt I delete everything. Let's see what the problem is, after this one I can tell you more.
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-29 21:21

It's the debian installer which creates the problem. I will try without the installer and chroot into the system I created, add the installer and things I want and then I try to see if I can make it into an iso.
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-29 21:39

as a user
binary.iso is on the Desktop
open terminal
su to root

cd Desktop
mkdir iso
mkdir temp
mount binary.iso -o loop temp/
cp -a temp/* iso/
umount temp/

mount -t squashfs -o loop iso/live/filesystem.squashfs temp/


The last command gives me this:
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

dmesg | tail gives
[37495.213219] SQUASHFS error: Can't find a SQUASHFS superblock on loop0

Anyone who can help me on this one ?

PS squashfs-tools are installed. squashfs kernel module is loaded
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby refracta » 2010-05-30 00:27

what is the output of...

dpkg --list | grep squash

uname -a
refracta
 
Posts: 1235
Joined: 2008-10-26 01:46

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-30 08:42

jeroen@debian ~ $ dpkg --list | grep squash
ii squashfs-tools 1:3.3-7 Tool to create and append to squashfs filesy

jeroen@debian ~ $ uname -a
Linux debian 2.6.32-bpo.2-powerpc #1 Tue Feb 16 04:35:47 UTC 2010 ppc GNU/Linux

Should I be working in the same kernel as the one I use in the live environment ? I use a kernel from the backport repository to solve my sleep problem.
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-30 09:01

Went back to kernel 2.6.26-2 and installed squashfs-modules-2.6.26-2-powerpc and modprobed it.

It works now. Thanks for your help.
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-30 14:01

Not bad, I am in my chrooted environment now and I have it like I want it. The only thing I like to add is the debian-installer, as I could not add it with live-helper. Does anyone know how to add di manually? I want to have a link to it on the desktop, like all the live installers.
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby refracta » 2010-05-30 15:01

I don't think you can add the actual debian installer manually to the system that gets installed.

I am guessing but I would suspect that the installer is in the initrd that boots the live system. So instead of starting over you could save the work you have now. Try again to build an image with the installer. If successful use the initrd/vmlinuz files from the live folder in the iso in your live folder for the iso you are building.

If you just want an installer to add to the live image then you might want to look at
http://packages.linuxmint.com/pool/main ... installer/
or
http://distro.ibiblio.org/pub/linux/dis ... installer/
refracta
 
Posts: 1235
Joined: 2008-10-26 01:46

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-30 15:56

I will start again from an existing live iso
http://live.debian.net/cdimage/release/ ... esktop.iso
(took me ages to find this iso :( )
I will then change it to what I want and hopefully I have a Linux Mint installer then.
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby refracta » 2010-05-30 16:05

If you are going to add the mint installer then there is no need to start over, just install it.

If you want the debian installer then you will need to build a live image with the installer included or use the relevant pieces from a livecd that was built with the installer included.



Be aware that the mint installer is something clem was working on....not anything officially released or anything. I think he talked about it on the mint forums in the debian section.
refracta
 
Posts: 1235
Joined: 2008-10-26 01:46

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-30 16:41

The mint installer did not work. It only works in x86 probably. As I said earlier, I can't make an iso with --debian-installer=enabled as it breaks down somewhere in the process. I tried several times. It always stops at the same spot.

I will try my best with the pre-cooked iso from the net. Thanks for your advise though. I appreciate it.
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

Re: creating custmized Debian CD

Postby refracta » 2010-05-30 16:58

clems installer is only a script and the refracta installer is nothing but a hacked copy of clems mint installer. Oh you will need rsync installed and python/gtk...

As far as errors when building.... I suggest creating a folder to work in and if it fails then delete the folder and start over from scratch rather than trying to clean. If you still get errors consider using a newer (or even older) version of live-helper. You might also read the man page man lh_config and see if you need to specify more options or be more specific with the options.
refracta
 
Posts: 1235
Joined: 2008-10-26 01:46

Re: creating custmized Debian CD

Postby linuxopjemac » 2010-05-30 17:08

Just booted into the pro-cooked lxde-iso from a USB stick. There is no debian-installer in this version as well. I guess it didn't work at the time of Lenny. I will try a Squeeze image. See if that has an installer inside....
linuxopjemac
 
Posts: 68
Joined: 2010-02-08 21:31

PreviousNext

Return to Debian Development

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable