Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Splashutils without initrd
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
marrowhk
Apprentice
Apprentice


Joined: 25 Jul 2007
Posts: 250

PostPosted: Tue Dec 25, 2007 3:56 am    Post subject: Splashutils without initrd Reply with quote

Build a kernel with splashutils splash built in (mini howto)

None of this is new, it's all on Splashutils wiki, all i do is make the process quicker by using aliases:

:idea: Build your splash into your kernel for fast booting.

1. Create the aliases needed to rebuild the kernel when needed

    /etc/bash/bashrc

Code:
alias splashup="touch /usr/src/linux/usr/initramfs_data.cpio.gz \
&& rm  /usr/src/linux/usr/initramfs_data.cpio.gz \
&& splash_geninitramfs -g /usr/src/linux/usr/initramfs_data.cpio.gz -v -r 1280x1024 clarke \
&& touch /usr/src/linux/usr/initramfs_data.cpio.gz"

alias kernup="mount /boot && cd /usr/src/linux && make menuconfig && make && make modules_install \
&& emerge -q dazuko truecrypt cdfs alsa-driver svgalib fuse hal cryptsetup klibc && make modules_install \
&& cp -iv arch/i386/boot/bzImage /boot/kernel && cp /usr/src/linux/.config /boot/config && umount /boot"

alias kernupman="mount /boot && cd /usr/src/linux && make menuconfig && make && make modules_install && cp -iv arch/i386/boot/bzImage /boot/kernel && umount /boot"


2. Build a new kernel

1. splashup (builds the splash into the kernel)
2. kernup (builds a completely new kernel and kernel dependent packages)
3. kernupman (rebuilds an already configured kernel i.e., to change a specific module)

Change the aliases to reflect the packages you have installed, your splash-theme name and the name of your kernel and updating to a new kernel is as easy as this:

A : su
B : splashup
C : kernup

Done!

==============
/boot/grub/menu.lst
==============

default 0
timeout X
hiddenmenu

title Gentoo 2008
root (hdX,X)
kernel /XXXX root=/dev/XXXX video=vesafb:ywrap,mtrr:3 vga=XXXX splash=silent,theme:XXXX quiet console=tty1

_________________
You'll always come back to GENTOOOOOOO ! (Trust me...)
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Tue Dec 25, 2007 12:42 pm    Post subject: Reply with quote

Maybe you should consider module-rebuild to rebuild kernel-dependent packages.
It would make the kernup alias more general.
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
marrowhk
Apprentice
Apprentice


Joined: 25 Jul 2007
Posts: 250

PostPosted: Wed Dec 26, 2007 2:15 am    Post subject: Reply with quote

module-rebuild seems a little confused about fully qualified package names;

Code:
# module-rebuild list
** Packages which I will emerge are:
   =/cdfs-2.6.23
   =/alsa-driver-1.0.15
   =/truecrypt-4.3a
   =/dazuko-2.3.4
   =app-crypt/truecrypt-4.3a
   =media-sound/alsa-driver-1.0.15
   =sys-fs/cdfs-2.6.23
   =sys-fs/dazuko-2.3.4


The populate option adds full names over short names and removing the short names is not possible. Seems like "putting legs on a snake" for such a small item, though if it worked I'd definitely use it.
_________________
You'll always come back to GENTOOOOOOO ! (Trust me...)
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Wed Dec 26, 2007 7:16 am    Post subject: Reply with quote

That sounds like a new bug.
You should report this issue on https://bugs.gentoo.org.

I never had problems with module-rebuild. It is part of my series of commands when rebuilding a new kernel.
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
JeliJami
Veteran
Veteran


Joined: 17 Jan 2006
Posts: 1086
Location: Belgium

PostPosted: Wed Dec 26, 2007 7:17 am    Post subject: Reply with quote

I think you can (re)move the files in /var/lib/module-rebuild and start over.
_________________
Unanswered Post Initiative | Search | FAQ
Former username: davjel
Back to top
View user's profile Send private message
marrowhk
Apprentice
Apprentice


Joined: 25 Jul 2007
Posts: 250

PostPosted: Wed Dec 26, 2007 1:55 pm    Post subject: Reply with quote

Looks like a solution. thanks
_________________
You'll always come back to GENTOOOOOOO ! (Trust me...)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum