LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Merge INITRD images in Slack12 ?? (https://www.linuxquestions.org/questions/slackware-14/merge-initrd-images-in-slack12-569642/)

adamh128 02-14-2008 07:13 AM

Still no splash screen!
 
Quote:

Originally Posted by szob (Post 2890420)

1. Make a new initrd with whatever modules you need. Go to /boot and issue mkinitrd -c -m module list - this will clear the existing tree (-c option) and add the necessary modules like ext3 or any other.

After this point you will have the initrd.gz in /boot as well as the initrd-tree directory.

2. Now lets do the actual bootsplash. You must have at least 1 bootsplash theme installed in /etc/bootsplash/themes/ directory. I assume you have configured the theme correctly, although I will post my cfg file for reference. Now, to create the actual bootsplash you need the 'splash' command from the splash utilities. After you have installed it issue:
/sbin/splash -s -f /etc/bootsplash/themes/yourtheme/config/bootsplash-1024x768.cfg >> /boot/initrd-tree/bootsplash

Replace 'yourtheme' with the name of your theme. This will create the actual bootsplash file already in the initrd-tree directory. Notice the name is not initrd.spalsh, but bootsplash. It should appear in the root directory of the initrd-tree.

3. Now we can create a proper operational initrd.splash file with modules necessary to mount your root partition (ext3 in my case). To do this go to /boot and issue:
mkinitrd -o initrd.splash

Notice that I skipped the -c parameter which wipes the existing initrd-tree with our bootsplash, so avoid this option. After issuing the above command you will have the initrd.splash prepared by the mkinitrd included in the Slackware. It is not corrupted and boots correctly.

4. Update your /etc/lilo.conf to include initrd=/boot/initrd.splash and run lilo to update the bootloader.

5. Reboot and enjoy your bootsplash!

Now, each time you add a new theme you must delete the /boot/initrd-tree/bootsplash file and re-run the splash command again and mkinitrd -o /boot/initrd.splashx to create another initrd without deleting the previous one. This way you can have a few themes and simply change the number of the splash initrd in the lilo.conf re-run lilo and you have a different splash screen. Simple enough.


I followed the above instructions, but I don't get a splash screen at all :-(

I'm wondering if the order of items in lilo.conf make a difference, and should I not include the vga command?

Here's my lilo.conf:

timeout = 0
lba32
compact
change-rules
reset
vga = 792
image = /boot/vmlinuz
initrd = /boot/initrd.splash
root = /dev/sdb3
label = back|track
read-only

gnashley 02-14-2008 09:28 AM

You need an append line with 'splash=silent'.

adamh128 02-18-2008 09:31 AM

Quote:

Originally Posted by gnashley (Post 3056916)
You need an append line with 'splash=silent'.

I tried this and it didn't make any difference :-(
What else might I be doing wrong?

Thanks,

henkees 02-20-2008 01:57 PM

Quote:

Originally Posted by gnashley (Post 2878653)
...
What you need to do is cd into your initrd skeleton directory(part of the mkinitrd package) and run 'splash -s -f /path/to/bootsplash.cfg > bootsplash'....

Hello everybody.. Just new on slack, but not new on linux, and trying to get a nice bootsplash..
Till now without any results except kernel panic.
But this post what i quoted above seemed to me very interesting.
But HOW do you cd (i understand the command) into the initrd skeleton dir?
I have the package installed. Where is this "initrd skeleton dir" ?
Maybe stupid question...but i can't find it.

Thanks in advance, Henkees.

captainchris 03-26-2008 01:45 PM

HI everybody , i tried to install bootsplash on my slackware 12.0.
I've build my kernel and i try to make splash image with splash -s -f /etc/... >> /boot/initrd.splash(and initrd.gz).My resolution on lilo is 791.When i choose bootspplash on lilo prompt,black screen and system is halted. I try too , mkinitrd -c -k 2.6.24-rt1 - m ext3 -f ext3 -r /dev/hda1
to generate an initrd.gz, with no splash image initrd.gz boot, but when i install in initrd-tree and re-lauch mkinitrd to make image,same problem.
I try cat initrd.splash >> initrd.gz and zcat initrd.gz >> initrd.splash.
same problem.

I try package of Orbit, i see the splash image, but the system doesn't start.

Anyone can help me
sorry for my english.
Thx everybody

henkees 05-08-2008 05:58 PM

How to make a bootsplash for grub
 
I had also a lot off problems with this bootsplash thing...
After searching forums, web and trying with lots of errors, finally it works! :)

This is how I did it for GRUB - I don't use LILO.

- you have to patch and configure the kernel; this point is already clearly descibed in other posts here above.
- install the splash utility: get file:
ftp://ftp.bootsplash.org/pub/bootspl...-3.0.7.tar.bz2
cd to ../bootsplah-3.0.7/Utilities and enter in terminal: make splash
cp ../bootsplah-3.0.7/Utilities/splash /sbin
cp ../bootsplah-3.0.7/Utilities/splash /usr/sbin

Get a nice splash like this one:
http://kde-look.org/content/show.php...?content=55323
mkdir /etc/bootsplash/themes

if you used the above theme, you unpack the archive and you'll see in there the dir "slackware". Copy this dir to /etc/bootsplash/themes/
So now you must have a dir:
/etc/bootsplash/themes/slackware/config and a dir
/etc/bootsplash/themes/slackware/images.

The next code I found on a forum, but I don't know anymore from where...
but it works...)
First make initrd:
I use Linux 2.6.24.5-smp kernel, with an ext3 root partition on /dev/hdb2,
so I type in a terminal as root:
mkinitrd -c -k 2.6.24.5-smp -m ext3 -f ext3 -r /dev/hda2

Now "merge" the splash together with the initrd:
type in a terminal as root :

cd /boot
mv initrd.gz initrd.gz.old
mkdir /boot/initrd.dir
cd /boot/initrd.dir
gunzip -c ../initrd.gz.old > initrd
cpio -vid < initrd
rm initrd
/usr/sbin/splash -s -f
### next code is correct when you used the above theme:
/etc/bootsplash/themes/slackware/config/bootsplash-1024x768.cfg > bootsplash
find | cpio -o -H newc | gzip -9 > ../initrd.gz
cd /boot; rm -fr /boot/initrd.dir


Edit your grub. I have in the grub for Slackware the next entry:

title Slackware 12.0
root (hd1,1)
kernel /boot/vmlinuz-2.6.24.5-smp root=/dev/hda2 vga=791 splash=silent showopts
initrd /boot/initrd.gz

The splash screen will work after reboot.
If you want some information how I get the progressbar working, just ask.
Hope this post can help a bit.

Registered Linux user 471834 Get counted:
http://counter.li.org/


All times are GMT -5. The time now is 01:00 PM.