How do you create a custom SLES 11.3 live ISO ?

Hi there

I am looking a creating a custom live CD so that I can use the apps that I need an take it around with me. However I can extract everything but I don’t know how to put it back together. So any help would be good.

This is what I did:

=====> I created a script and put the iso in a directory <=====
lxpkr:/opt/ISO/opensuse/tmp # ls -l
total 699400
-rwxr-xr-x 1 root root 206 Aug 10 04:59 extract_iso.sh
-rw-r–r-- 1 readyp mrst 716177408 Aug 10 03:23
openSUSE-11.3-GNOME-LiveCD-i686.iso

lxwest:/opt/ISO/opensuse/tmp # cat extract_iso.sh

mkdir iso ext3 clicfs
mount -o loop openSUSE-11.3-GNOME-LiveCD-i686.iso iso
clicfs -m 128 iso/openSUSE-gnome-11.3-livecd-gnome-read-only.i686-2.8.0 clicfs
mount -o loop clicfs/fsdata.ext3 ext3
ls -l ext3

====> I then run the script and everything gets mounted OK <====

lxpkr:/opt/ISO/opensuse/tmp # sh ./extract_iso.sh
total 144
drwxr-xr-x 2 root root 4096 Jul 6 06:41 bin
drwxr-xr-x 3 root root 4096 Jul 6 06:43 boot
drwxr-xr-x 3 root root 4096 Jul 1 16:02 dev
drwxr-xr-x 113 root root 12288 Jul 6 07:08 etc
drwxr-xr-x 3 root root 4096 Jul 6 06:53 home
drwxr-xr-x 2 root root 4096 Jul 6 06:55 image
drwxr-xr-x 17 root root 12288 Jul 6 06:43 lib
-rw-r–r-- 1 root root 27993 Jul 6 01:49 license.tar.gz
drwx------ 2 root root 16384 Jul 6 06:55 lost+found
drwxr-xr-x 2 root root 4096 Jul 1 16:02 media
drwxr-xr-x 2 root root 4096 Jul 1 16:02 mnt
drwxr-xr-x 2 root root 4096 Jul 1 16:02 opt
dr-xr-xr-x 2 root root 4096 Jul 1 16:02 proc
drwx------ 4 root root 4096 Jul 6 06:38 root
drwxr-xr-x 3 root root 12288 Jul 6 06:44 sbin
drwxr-xr-x 2 root root 4096 Jul 1 16:02 selinux
drwxr-xr-x 4 root root 4096 Jul 6 06:37 srv
drwxr-xr-x 2 root root 4096 Jul 1 16:02 sys
drwxrwxrwt 2 root root 4096 Jul 6 06:54 tmp
drwxr-xr-x 12 root root 4096 Jul 6 06:22 usr
drwxr-xr-x 15 root root 4096 Jul 6 06:22 var
lxpkr:/opt/ISO/opensuse/tmp #

lxpkr:/opt/ISO/opensuse/tmp # mount
/dev/loop5 on /opt/ISO/opensuse/tmp/iso type iso9660 (rw)
clicfs on /opt/ISO/opensuse/tmp/clicfs type fuse.clicfs (rw,nosuid,nodev)
/dev/loop6 on /opt/ISO/opensuse/tmp/ext3 type ext4 (rw)

lxpkr:/opt/ISO/opensuse/tmp # df
Filesystem 1K-blocks Used Available Use% Mounted on

clicfs 0 0 0 - /opt/ISO/opensuse/tmp/clicfs
/dev/loop5 698554 698554 0 100% /opt/ISO/opensuse/tmp/iso
/dev/loop6 2494312 2494312 0 100% /opt/ISO/opensuse/tmp/ext3

lxpkr:/opt/ISO/opensuse/tmp #

====> I can go into the area <=====

lxpkr:/opt/ISO/opensuse/tmp # cd ext3
lxpkr:/opt/ISO/opensuse/tmp/ext3 # chroot .
lxpkr:/> su -

====> Remove a rpm (will have to do a lot later) <====

lxpkr:~> rpm -e xsane
lxpkr:~> exit
logout
lxpkr:/> exit
exit
lxpkr:/opt/ISO/opensuse/tmp/ext3 # df .
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/loop6 2494312 2486884 0
100% /opt/ISO/opensuse/tmp/ext3

Thanks for any help.

Hi
It’s openSUSE 11.3 :wink: Why not just use SuSE Studio to roll your own…?
http://susestudio.com/

Just need to create an account and wait for the login details, it
shouldn’t take long.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 (x86_64) Kernel 2.6.34-12-default
up 6 days 22:32, 2 users, load average: 0.12, 0.09, 0.02
GPU GeForce 8600 GTS Silent - Driver Version: 256.44

Thanks Malcolm, I will try that.

But for info, do you know how the reverse process works ?

Hi
I would have a look through the wiki documentation (Distribuion
Creation) http://en.opensuse.org/Portal:Development/Topics


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.3 (x86_64) Kernel 2.6.34-12-default
up 6 days 23:40, 2 users, load average: 0.04, 0.04, 0.00
GPU GeForce 8600 GTS Silent - Driver Version: 256.44