added grub2 theme, removed docker and code

This commit is contained in:
randogoth 2025-11-22 10:49:43 +02:00
parent f832d683ed
commit f48f0615b6
55 changed files with 205 additions and 22 deletions

View file

@ -5,6 +5,5 @@
# builds actually ran successfully without any errors! # builds actually ran successfully without any errors!
set -oue pipefail set -oue pipefail
# Your code goes here. sudo chmod 755 /usr/local/sbin/bls-add-bluefin.sh
echo 'This is an example shell script' sudo systemctl daemon-reload
echo 'Scripts here will run during build if specified in recipe.yml'

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 947 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 978 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,009 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 251 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: 251 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: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

View 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"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View file

@ -0,0 +1,3 @@
set theme="/boot/grub2/themes/thinkpad/theme.txt"
set timeout=2
set gfxmode=1024x768,800x600

View file

@ -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

View 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

View file

@ -11,26 +11,25 @@ image-version: latest # latest is also supported if you want new updates ASAP
# module configuration, executed in order # module configuration, executed in order
# you can include multiple instances of the same module # you can include multiple instances of the same module
# modules: modules:
# - type: files - type: files
# files: files:
# - source: system - source: system
# destination: / # copies files/system/* (* means everything inside it) into your image's root folder / destination: / # copies files/system/* (* means everything inside it) into your image's root folder /
# - type: dnf - type: dnf
# repos: install:
# copr: packages:
# - atim/starship - syncthing
# install: - waydroid
# packages: remove:
# - micro packages:
# - starship - code
# remove: - docker-ce
# packages: - docker-ce-cli
# # example: removing firefox (in favor of the flatpak) - docker-ce-rootless-extras
# # "firefox" is the main package, "firefox-langpacks" is a dependency - docker-compose-plugin
# - firefox - docker-model-plugin
# - firefox-langpacks # also remove firefox dependency (not required for all packages, this is a special case)
# - type: default-flatpaks # - type: default-flatpaks
# configurations: # configurations: