added grub2 theme, removed docker and code
BIN
files/system/boot/grub2/themes/thinkpad/background.png
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
files/system/boot/grub2/themes/thinkpad/icons/arch.png
Normal file
|
After Width: | Height: | Size: 947 B |
BIN
files/system/boot/grub2/themes/thinkpad/icons/bluefin.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/debian.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/efi.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/fedora.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/freebsd.png
Normal file
|
After Width: | Height: | Size: 978 B |
BIN
files/system/boot/grub2/themes/thinkpad/icons/gentoo.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/gnu-linux.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/gnu.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/kubuntu.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/linuxmint.png
Normal file
|
After Width: | Height: | Size: 1,009 B |
BIN
files/system/boot/grub2/themes/thinkpad/icons/memtest.png
Normal file
|
After Width: | Height: | Size: 844 B |
BIN
files/system/boot/grub2/themes/thinkpad/icons/opensuse.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/reactos.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/red.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/restart.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/shutdown.png
Normal file
|
After Width: | Height: | Size: 1 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/slackware.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/ubuntu.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/uefi.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/windows.png
Normal file
|
After Width: | Height: | Size: 264 B |
BIN
files/system/boot/grub2/themes/thinkpad/icons/xen.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/icons/xubuntu.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/lenovo_logo.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
files/system/boot/grub2/themes/thinkpad/menu_inactive_e.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_inactive_n.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_inactive_ne.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_inactive_nw.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_inactive_s.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_inactive_se.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_inactive_sw.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_inactive_w.png
Normal file
|
After Width: | Height: | Size: 244 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_selected_e.png
Normal file
|
After Width: | Height: | Size: 250 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_selected_n.png
Normal file
|
After Width: | Height: | Size: 251 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_selected_ne.png
Normal file
|
After Width: | Height: | Size: 253 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_selected_nw.png
Normal file
|
After Width: | Height: | Size: 253 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_selected_s.png
Normal file
|
After Width: | Height: | Size: 251 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_selected_se.png
Normal file
|
After Width: | Height: | Size: 253 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_selected_sw.png
Normal file
|
After Width: | Height: | Size: 253 B |
BIN
files/system/boot/grub2/themes/thinkpad/menu_selected_w.png
Normal file
|
After Width: | Height: | Size: 250 B |
BIN
files/system/boot/grub2/themes/thinkpad/progress_active_c.png
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
files/system/boot/grub2/themes/thinkpad/progress_inactive_c.png
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
files/system/boot/grub2/themes/thinkpad/roboto-20.pf2
Normal file
BIN
files/system/boot/grub2/themes/thinkpad/roboto-22.pf2
Normal file
BIN
files/system/boot/grub2/themes/thinkpad/roboto-42.pf2
Normal file
BIN
files/system/boot/grub2/themes/thinkpad/separator.png
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
files/system/boot/grub2/themes/thinkpad/terminus-ttf-20.pf2
Normal file
146
files/system/boot/grub2/themes/thinkpad/theme.txt
Normal file
|
|
@ -0,0 +1,146 @@
|
|||
title-text: ""
|
||||
desktop-image: "background.png"
|
||||
desktop-color: "#ffffff"
|
||||
terminal-font: "Terminus (TTF) Regular 20"
|
||||
terminal-left: "0"
|
||||
terminal-top: "0"
|
||||
terminal-width: "100%"
|
||||
terminal-height: "100%"
|
||||
terminal-border: "0"
|
||||
|
||||
+ image {
|
||||
file = "thinkpad_logo.png"
|
||||
top = 40
|
||||
left = 40
|
||||
}
|
||||
+ image {
|
||||
file = "lenovo_logo.png"
|
||||
top = 40
|
||||
left = 100%-296
|
||||
}
|
||||
+ image {
|
||||
file = "separator.png"
|
||||
top = 100%-106
|
||||
left = 0
|
||||
width = 100%
|
||||
height = 4
|
||||
}
|
||||
|
||||
+ progress_bar {
|
||||
left = 50%-400
|
||||
top = 79%-20
|
||||
width = 800
|
||||
height = 40
|
||||
|
||||
id = "__timeout__"
|
||||
text = "@TIMEOUT_NOTIFICATION_SHORT@"
|
||||
|
||||
border_color = "white"
|
||||
highlight_style = "progress_active_*.png"
|
||||
bar_style = "progress_inactive_*.png"
|
||||
font = "Roboto Regular 20"
|
||||
}
|
||||
|
||||
|
||||
+ label {
|
||||
font = "Roboto Regular 42"
|
||||
left = 0
|
||||
top = 4%+125
|
||||
width = 100%
|
||||
color = "#9667cc"
|
||||
align = "center"
|
||||
text = "Select Boot Option"
|
||||
}
|
||||
|
||||
+ boot_menu {
|
||||
left = 50%-400
|
||||
top = 50%-300
|
||||
width = 800
|
||||
height = 600
|
||||
item_font = "Roboto Regular 22"
|
||||
item_color = "#FFFFFF"
|
||||
selected_item_color = "#FFFFFF"
|
||||
icon_width = 48
|
||||
icon_height = 48
|
||||
item_icon_space = 10
|
||||
item_height = 48
|
||||
item_padding = 20
|
||||
item_spacing = 10
|
||||
item_pixmap_style = "menu_inactive_*.png"
|
||||
selected_item_pixmap_style = "menu_selected_*.png"
|
||||
}
|
||||
|
||||
|
||||
+ label {
|
||||
font = "Roboto Regular 22"
|
||||
left = 0%
|
||||
top = 100%-66
|
||||
width = 13%-5
|
||||
color = "#398ecd"
|
||||
align = "right"
|
||||
text = "↑↓"
|
||||
}
|
||||
+ label {
|
||||
font = "Roboto Regular 22"
|
||||
left = 13%+5
|
||||
top = 100%-66
|
||||
color = "#FFFFFF"
|
||||
align = "left"
|
||||
text = "Select"
|
||||
}
|
||||
|
||||
+ label {
|
||||
font = "Roboto Regular 22"
|
||||
left = 25%
|
||||
top = 100%-66
|
||||
width = 10%-5
|
||||
color = "#398ecd"
|
||||
align = "right"
|
||||
text = "Enter"
|
||||
}
|
||||
+ label {
|
||||
font = "Roboto Regular 22"
|
||||
left = 35%+5
|
||||
top = 100%-66
|
||||
color = "#FFFFFF"
|
||||
align = "left"
|
||||
text = "Boot"
|
||||
}
|
||||
|
||||
+ label {
|
||||
font = "Roboto Regular 22"
|
||||
left = 48%
|
||||
top = 100%-66
|
||||
width = 10%-5
|
||||
color = "#398ecd"
|
||||
align = "right"
|
||||
text = "E"
|
||||
}
|
||||
+ label {
|
||||
font = "Roboto Regular 22"
|
||||
left = 58%+5
|
||||
top = 100%-66
|
||||
color = "#FFFFFF"
|
||||
align = "left"
|
||||
text = "Options"
|
||||
}
|
||||
|
||||
+ label {
|
||||
font = "Roboto Regular 22"
|
||||
left = 70%
|
||||
top = 100%-66
|
||||
width = 10%-5
|
||||
color = "#398ecd"
|
||||
align = "right"
|
||||
text = "C"
|
||||
}
|
||||
+ label {
|
||||
font = "Roboto Regular 22"
|
||||
left = 80%+5
|
||||
top = 100%-66
|
||||
color = "#FFFFFF"
|
||||
align = "left"
|
||||
text = "Command Line"
|
||||
}
|
||||
|
||||
|
||||
BIN
files/system/boot/grub2/themes/thinkpad/thinkpad_logo.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
3
files/system/boot/grub2/user.cfg
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
set theme="/boot/grub2/themes/thinkpad/theme.txt"
|
||||
set timeout=2
|
||||
set gfxmode=1024x768,800x600
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
[Service]
|
||||
ExecStartPost=
|
||||
ExecStopPost=/usr/bin/bash --noprofile --norc -lc '/usr/local/sbin/bls-add-bluefin.sh'
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
Environment=STARSHIP_LOG=off
|
||||
30
files/system/usr/local/sbin/bls-add-bluefin.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
shopt -s nullglob
|
||||
|
||||
entries_dir="/boot/loader/entries"
|
||||
|
||||
for f in "$entries_dir"/ostree-*.conf "$entries_dir"/*-ostree-*.conf; do
|
||||
[ -f "$f" ] || continue
|
||||
|
||||
# Already correct? skip
|
||||
if grep -qxE 'grub_class[[:space:]]+bluefin' "$f"; then
|
||||
continue
|
||||
fi
|
||||
|
||||
tmp="$(mktemp)"
|
||||
if grep -qE '^grub_class[[:space:]]+' "$f"; then
|
||||
sed -E 's/^grub_class[[:space:]].*/grub_class bluefin/' "$f" >"$tmp"
|
||||
else
|
||||
awk '1; /^title[[:space:]]/{print "grub_class bluefin";}' "$f" >"$tmp"
|
||||
fi
|
||||
|
||||
if ! cmp -s "$f" "$tmp"; then
|
||||
chmod --reference="$f" "$tmp"
|
||||
chown --reference="$f" "$tmp"
|
||||
command -v chcon >/dev/null 2>&1 && chcon --reference="$f" "$tmp" 2>/dev/null || true
|
||||
mv -f "$tmp" "$f"
|
||||
else
|
||||
rm -f "$tmp"
|
||||
fi
|
||||
done
|
||||