Образ: меню загрузки по-русски в оформлении Bridge&Join (GRUB в графическом режиме, тема grub-theme/; без графики — те же пункты по-английски), в BIOS пункт «Загрузиться с жёсткого диска»; экран установки на консоли вместо журнала установщика Ubuntu — этапы по-русски и полоса хода (bj-install-progress из early-commands; при ошибке или сбое экрана возвращается стандартный экран Ubuntu); quiet при загрузке установщика

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014FsEKyJrYF69Cj9ZXzFLRi
This commit is contained in:
zuevav
2026-10-05 20:13:43 +03:00
parent cf668eebbd
commit 42fe42fce5
20 changed files with 410 additions and 10 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
# Пересобрать оформление меню загрузки образа (шрифты GRUB и картинки) — результат в этом же каталоге.
# Нужны grub-mkfont (grub-common), шрифты DejaVu и ImageMagick (convert). theme.txt правится руками.
set -eu
cd "$(dirname "$0")"
D=/usr/share/fonts/truetype/dejavu
# латиница, кириллица, тире, точка, кавычки, стрелки — больше в меню ничего нет
R=0x20-0x7E,0xA0-0xFF,0x400-0x45F,0x2010-0x2027,0x2190-0x2193,0x2039-0x203A
grub-mkfont -r $R -s 36 -o bj-sans-bold-36.pf2 $D/DejaVuSans-Bold.ttf
grub-mkfont -r $R -s 20 -o bj-sans-bold-20.pf2 $D/DejaVuSans-Bold.ttf
grub-mkfont -r $R -s 20 -o bj-sans-20.pf2 $D/DejaVuSans.ttf
grub-mkfont -r $R -s 16 -o bj-sans-16.pf2 $D/DejaVuSans.ttf
grub-mkfont -r $R -s 16 -o bj-mono-16.pf2 $D/DejaVuSansMono.ttf
# фон: тёмный, чуть светлее к центру
convert -size 320x240 radial-gradient:'#172036'-'#0a0e18' -depth 8 PNG24:background.png # GRUB растянет на экран; PNG24 — палитру GRUB не читает
# подсветка выбранного пункта: 9 частей рамки одного цвета (углы 4×4)
for p in nw ne sw se; do convert -size 4x4 xc:'#2f55d4' PNG24:select_$p.png; done
for p in n s; do convert -size 1x4 xc:'#2f55d4' PNG24:select_$p.png; done
for p in w e; do convert -size 4x1 xc:'#2f55d4' PNG24:select_$p.png; done
convert -size 1x1 xc:'#2f55d4' PNG24:select_c.png
ls -la
Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 253 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

+66
View File
@@ -0,0 +1,66 @@
# Bridge&Join — оформление меню загрузки образа (GRUB, графический режим).
# Шрифты и картинки — make-theme.sh; в шрифтах только латиница, кириллица, тире и стрелки.
title-text: ""
desktop-image: "background.png"
desktop-image-scale-method: "stretch"
desktop-color: "#0d1220"
terminal-font: "DejaVu Sans Mono Regular 16"
+ label {
left = 0
top = 13%
width = 100%
height = 48
align = "center"
text = "Bridge&Join"
font = "DejaVu Sans Bold 36"
color = "#ffffff"
}
+ label {
left = 0
top = 13%+54
width = 100%
height = 24
align = "center"
text = "шлюз, объединяющий системы финансовой организации"
font = "DejaVu Sans Regular 16"
color = "#8d98ad"
}
+ boot_menu {
left = 50%-380
top = 31%
width = 760
height = 260
item_font = "DejaVu Sans Regular 20"
selected_item_font = "DejaVu Sans Bold 20"
item_color = "#c3cad6"
selected_item_color = "#ffffff"
item_height = 44
item_padding = 16
item_spacing = 6
icon_width = 0
icon_height = 0
item_icon_space = 0
selected_item_pixmap_style = "select_*.png"
scrollbar = false
}
+ label {
left = 50%-380
top = 31%+272
width = 760
height = 24
align = "center"
text = "Первый пункт устанавливает Bridge&Join и стирает весь диск сервера"
font = "DejaVu Sans Regular 16"
color = "#f0a35e"
}
+ label {
left = 0
top = 90%
width = 100%
height = 24
align = "center"
text = "↑ ↓ — выбрать пункт, Enter — запустить"
font = "DejaVu Sans Regular 16"
color = "#8d98ad"
}