You need to play with linuxrc, inside minirt.gz.
I want to change the text displayed during boot to green. Everything after the boot loader, and prior to x.
I havent found any info on it, but it was done on knoppix I recall.
Can someone point me in the right direction?
i am running Debian Etch 2.6.15
You need to play with linuxrc, inside minirt.gz.
thanks, anything more specific?
![]()
search this forum for linuxrc and then google search for bash shell and colors.Originally Posted by hyperlife
I did that and found next to nothing. After playing around with it for an hour or two I discovered it's pretty easy. I'm sure UnderScore and other could have answered this off the top of thier heads - I'm not sure why they don't. Anyway here it is, so we can check it off the list as something that's now well documented:Originally Posted by UnderScore
1) find minirt.gz (or minirt24.gz, etc depending on your version) in your boot directory
2) Bash commands:
gunzip minirt.gz (or minirt24.gz, etc) # extract the contents, it will extract as a single file
mkdir temp # create a temporary directory as a mount point for the file
mount -o loop minirt temp # mount the extracted contents into the 'temp' directory
vi temp/linuxrc # edit the bash script containing the boot sequence
3) while editing linuxrc (last step above) you should be able to easily locate the part you want to change. Save your changes.
4) umount temp
5) gzip -9 minirt (or minirt24, etc. - whatever the filename is)
6) You're done. If you were smart you did this to a copy of the original. Rename the original something else as a backup.
Frankly I've extracted the 'linuxrc' from my 3.8.2 install and it looks like something poor:
Maybe a useful file to hack is '/etc/init.d/knoppix-autoconfig'.Code:#!/bin/sh # # $Id: linuxrc,v 1.11 2004/04/26 12:04:46 herbert Exp $ export PATH=/sbin:/bin mount -nt proc proc proc root=$(cat proc/sys/kernel/real-root-dev) echo 256 > proc/sys/kernel/real-root-dev mount -nt tmpfs tmpfs bin || mount -nt ramfs ramfs bin echo $root > bin/root
In it there is stuff like the colored kernel version prompt at boot:
Code:KERNEL="$(uname -r)" echo "${GREEN}Running Linux Kernel ${YELLOW}$KERNEL${GREEN}.${NORMAL}"

Lenovo ThinkPad T14 Gen 1 14" AMD Ryzen 5 16GB 256GB SSD
$219.99
Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black
$241.50
Lenovo ThinkPad L15 Gen 3 15.6" 16GB, Thunder Black
$241.50
Lenovo Thinkpad X1 Yoga Gen 6 14" 16GB, Storm Gray
$356.80
Lenovo ThinkPad T14 G2 14-Inch AMD Ryzen R5 5650U 16GB, 512GB SSD Win 11 Pro
$398.99
Lenovo IdeaPad 5 2-in-1 16" WUXGA Touch Ryzen 7 8845HS 16GB 512GB SSD FPReader
$571.00
Lenovo Legion 5 Gaming 15.1" WQXGA OLED 165Hz Core i9-14900HX 16GB 1TB RTX 5070
$1469.00
Lenovo - IdeaPad Slim 3i 15.3" 2K Touchscreen Laptop - Intel Core 7 350 2026 ...
$679.99
Lenovo Thinkpad E15 Gen 2 8GB RAM 256GB SSD Intel Core [email protected] Laptop
$220.36
Lenovo ThinkPad T14s Laptop 14” Laptop Core i5 8GB RAM 256GB SSD Windows 11 Pro
$249.99