Archive for May, 2010

Grub2 problems?

Here is a quick checklist of things you can try.

I still have grub 0.xx how can I use grub2?
If you are using an older Sabayon install like 5.1 or earlier, grub might have been updated as a package, but it still would not be installed to the master boot record. You will have todo that manually if you want to switch over to grub2!

grub2-install /dev/sda

Will install the newer grub to the MBR, from here you need to generate the /boot/grub/grub.cfg
MIND THIS: grub2 does NOT use /boot/grub/menu.lst or /boot/grub/grub.conf anymore!!

To generate your new cfg file as root issue this command:

grub-mkconfig -o /boot/grub/grub.cfg

I have grub2 but it does not work from my external USB drive!
If you use grub2 from your USB MBR you want to add these flags to the kernel line in /boot/grub/grub.cfg
doslowusb scandelay=10

or even better would be to add them here:
/etc/default/grub
in GRUB_CMDLINE_LINUX_DEFAULT=””
and then regenerate you grub.cfg (grub-mkconfig -o /boot/grub/grub.cfg)

reason this is better is because whenever entropy automatically triggers the grub config rebuild script your direct edit on /boot/grub/grub.cfg will be lost.

I have grub2 and it boots fine , but my bootsplash image is corrupted!
Add this to your kernel boot line:
vga=791

Hope it helps.

1 Comment

Create your own spinoff!

If you are in a small company or simply in a situation where you want to install a preselected list of programs then why shouldn’t you just grab SabayonCore modify the ISO so it will have anything you want and burn that to a disc. Or maybe you want to create your own Sabayon based distro and fork it a bit? Yes you can!

The tool we have in stock to achieve this is called molecule.
First install molecule (equo install molecule)

Then grab an example spec file.

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.git;a=blob;f=examples/specs/5-x86-g-remaster-add-games.spec;h=5623f42dee8595990663ad2e72697cafd9ce9143;hb=29d45a193430bc8afbda65d0cf10f692144f5f70

(also found in /etc/molecule/examples)

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

# 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:

# Path to source ISO file (MANDATORY)
source_iso: /home/joost/Sabayon_Linux_CoreCD_DAILY_amd64.iso

Now where does this all go:

# 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)

# 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)

# List of packages that would be added from chrooted system (comma separated)
packages_to_add: @lxde

Ofcourse you can add as many packages here as you want!

I can imagine this does not actually give the perfect result yet.
In my example I use 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:
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="gdm"/g' /etc/conf.d/xdm

Make xdm startup automaticly (and thus load gdm)
rc-update add xdm

so I created inner_chroot_script_after.sh
#!/bin/bash
# Use gdm by default
sed -i 's/DISPLAYMANAGER=".*"/DISPLAYMANAGER="gdm"/g' /etc/conf.d/xdm
# automaticly start xdm
rc-update add xdm
# to be sure, cleanup
equo cleanup

All these commands should be put in a file, and we point our specs file to trigger it from within the chroot like this:
# Inner chroot script command, to be executed inside destination chroot after
# packages installation and removal
inner_chroot_script_after: /home/joost/inner_chroot_script_after.sh

Now run molecule and make it all happen:
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?

12 Comments

Macbook 5.2 and latest alsa

Well I patiently waited for this and it now finally seems to work!

Just add:
options snd_hda_intel model=mb5

in this file: /etc/modprobe.d/alsa.conf

Reboot and there it is.

2 Comments

Follow

Get every new post delivered to your Inbox.

Join 177 other followers