Распаковать initrd или сменить bootsplash

  • Печать

Точно работает с Thinstation 2.x.x c 5 версией не пробовал

Проще всего это сделать установив в систему пакет squashfs и выполнив команду:
unsquashfs -d initrd.fs/  initrd
получится папка initrd.fs в которой лежит содержимое, забирайте оттуда все что хотите

Если хочется заменить bootsplash на свой - нам понадобится следующее:

  • Linux
  • Сам файл initrd
  • Два файла с Вашим логотипом, размером 1024х768, с названиями bootsplash-1024x768.jpg и silent-1024x768.jpg, сделаные в Gimp.
  • Файл, с именем bootsplash-1024x768.cfg в который напишем следующее:

# This is the configuration file for the 1024x768 bootsplash picture.
#
# This file is necessary to specify the coordinates of the text box on
# the splash screen.

# config file version
version=3

# should the picture be displayed?
state=1

# fgcolor is the text forground color.
# bgcolor is the text background (i.e. transparent) color.
fgcolor=7
bgcolor=0

# (tx, ty) are the (x, y) coordinates of the text window in pixels.
# tw/th is the width/height of the text window in pixels.
tx=0
ty=0
tw=1024
th=768

# name of the picture file (full path recommended)
jpeg=bootsplash-1024x768.jpg
silentjpeg=silent-1024x768.jpg

progress_enable=1

# background
box silent noover 204 705 820 725 #0191dc
box silent inter  204 706 204 724 #0191dc #a4d5ef #0191dc #a4d5ef
box silent        204 706 820 724 #0191dc #a4d5ef #0191dc #a4d5ef

# black border
box silent         204 705 820 705 #b5b5b5
box silent         204 725 820 725 #b5b5b5
box silent         204 705 204 725 #b5b5b5
box silent         820 705 820 725 #b5b5b5
overpaintok=1

Делаем следующие манипуляции:

unsquashfs -f -d initrd.fs/ initrd
mkdir -p final/
mksquashfs initrd.fs/ final/initrd -all-root

и дописать картинку
splash -s -f bootsplash-1024x768.cfg >> final/initrd

Обсудить на форуме (комментариев 15).