Remastersys on Sabayon

Discussions Regarding Software

Moderator: Moderators

Post Reply
HufflepuffBR
Baby Hen
Posts: 4
Joined: Wed May 05, 2010 15:04

Remastersys on Sabayon

Post by HufflepuffBR » Fri May 07, 2010 13:14

Hi!

I was a accomplished user of Remastersys on Ubuntu to remaster my distro and create some restore DVDs for my notebook before great upgrades, so if something ate my system, I had something to use as start point.

My question is: thereis a package or ebuild for remastersys or other tools like it available for Sabayon?

joost
Sagely Hen
Posts: 2690
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Remastersys on Sabayon

Post by joost » Fri May 07, 2010 20:26

Yes its called "molecule" but sadly the documentation for it is not done yet.
Image
My blog | Twitter | Please support Sabayon: Image

HufflepuffBR
Baby Hen
Posts: 4
Joined: Wed May 05, 2010 15:04

Re: Remastersys on Sabayon

Post by HufflepuffBR » Fri May 07, 2010 20:57

Okay... I'll install this molecule and try to remaster Sabayon. I'm assuming it is available on Entropy repos

joost
Sagely Hen
Posts: 2690
Joined: Fri Nov 17, 2006 12:11
Location: The Netherlands
Contact:

Re: Remastersys on Sabayon

Post by joost » Fri May 07, 2010 22:14

I will try to start on this myself soon and while doing it, mastering a lxde iso based on Sabayon Core, I'll document what I did.

I have no idea what I'm getting into YET, but I know in the end I'll produce something.
All I can say is that if you want to start something based on the CoreCD you want to have a look at this spec file:

http://gitweb.sabayon.org/?p=molecule.g ... 92144f5f70

(also found in /etc/molecule/examples)

Since I am for now only looking into a 64bits mastered ISO I've commented out:

Code: Select all

# pre chroot command, example, for 32bit chroots on 64bit system, you always
# have to append "linux32" this is useful for inner_chroot_script
#prechroot: linux32
Next I point to where My ISO I want to remaster is:

Code: Select all

# Path to source ISO file (MANDATORY)
source_iso: /home/joost/Sabayon_Linux_CoreCD_DAILY_amd64.iso
Now where does this all go:

Code: Select all

# Destination directory for the ISO image path (MANDATORY)
destination_iso_directory: /home/joost
Tell molecule to update that ISO before installing anything (that is the next point in line)

Code: Select all

# Determine whether repositories update should be run (if packages_to_add is set)
# (default is: no), values are: yes, no.
execute_repositories_update: yes
Tell it to add packages (in this case my set @lxde)

Code: Select all

# List of packages that would be added from chrooted system (comma separated)
packages_to_add: @lxde
Now run molecule and make it all happen:

Code: Select all

molecule sabayon-lxde-amd64.spec
Keep in mind I cannot guarantee anything YET, but it should give you a head start.
Also note that this is a strategy used where we take an excisting iso and modify it basicly. Much more advanced things ARE possible but lets start here rite?

:D

In addition, I can imagine this does not actually give the perfect result yet.
Please note that you can hook in some scripts to change some stuff on the chroot.

In my example I used the @lxde set and it contains the gdm login manager by default. On CoreCD chroot there is actually nothing that triggers this to auto start. We also need to configure a file called /etc/conf.d/xdm and set it to use gdm.

Here an example snip. how thats done:

Make it use gdm:

Code: Select all

sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="gdm"/g' /etc/conf.d/xdm
Make xdm startup automaticly (and thus load gdm)

Code: Select all

rc-update add xdm
Image
My blog | Twitter | Please support Sabayon: Image

Post Reply