Add initial bootloader theme, allow build with other desktop's

This commit is contained in:
Aleksey Samoilov 2023-05-07 17:21:20 +04:00
parent 9b92670c8e
commit 146b9dd811
35 changed files with 229 additions and 12 deletions

View file

@ -66,7 +66,7 @@ build () {
# remove old configs and copy over new
rm -rf config auto
cp -r "$BASE_DIR"/etc/* .
cp -r "$BASE_DIR"/etc/$DESKTOP/* .
# Make sure conffile specified as arg has correct name
cp -f "$BASE_DIR"/"$CONFIG_FILE" terraform.conf

View file

@ -1,10 +0,0 @@
[terminal]
vt = 7
[default_session]
command = "cage -s -d -- regreet"
user = "_greetd"
[initial_session]
command = "sway"
user = "tileos"

View file

@ -12,7 +12,7 @@ lb config noauto \
--archive-areas "main contrib non-free non-free-firmware" \
--parent-archive-areas "main contrib non-free non-free-firmware" \
--linux-packages linux-image \
--bootappend-live "boot=live components username=tileos quiet splash" \
--bootappend-live "boot=live username=tileos quiet splash" \
--mirror-bootstrap "$MIRROR_URL" \
--parent-mirror-bootstrap "$MIRROR_URL" \
--mirror-chroot-security "http://deb.debian.org/debian-security/" \

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1,61 @@
load function_video {
if [ x$feature_all_video_module = xy ]
then
insmod all_video
else
insmod video_bochs
insmod video_cirrus
if test "${grub_platform}" == "efi"
then
insmod efi_gop
insmod efi_uga
elif test "${grub_platform}" == "pc"
then
insmod vbe
insmod vga
fi
fi
}
set color_normal=white/black
set color_highlight=black/light-gray
set timeout=10
set timeout_style=menu
set theme=/boot/grub/tileos-theme/theme.txt
if loadfont /boot/grub/dejavu-bold-14.pf2
then
set gfxmode=auto
export gfxmode
load_video
insmod gfxterm
terminal_output gfxterm
insmod gfxmenu
insmod png
export theme
fi
menuentry "Start TileOS" {
set gfxpayload=keep
linux @KERNEL_LIVE@ @APPEND_LIVE@
initrd @INITRD_LIVE@
}
# Memtest (if any)
if [ "${grub_platform}" = "pc" ] -a @ENABLE_MEMTEST@; then
source /boot/grub/memtest.cfg
fi
# Firmware setup (UEFI)
if [ "${grub_platform}" = "efi" ]; then
menuentry "UEFI Firmware Settings" {
fwsetup
}
fi
menuentry "Power Off" --class shutdown {
halt
}

View file

@ -0,0 +1,3 @@
menuentry "Memory Diagnostic Tool (@MEMTEST_VERSION@)" --hotkey=m {
linux16 @MEMTEST_BIN@
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

View file

@ -0,0 +1,61 @@
title-text: ""
desktop-image: "background.png"
desktop-color: "#000000"
title-color: "#ffffff"
title-font: "DejaVu Sans Bold 16"
message-font: "Unifont Regular 16"
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"
# Logo image
+ image {
left = 50%-270
top = 50%-200
file = "logo.png"
}
#help bar at the bottom
+ label {
top = 100%-50
left = 0
width = 100%
height = 20
text = "@KEYMAP_SHORT@"
align = "center"
color = "#ffffff"
font = "DejaVu Sans Bold 14"
}
#boot menu
+ boot_menu {
left = 50%-125
width = 500
top = 50%+100
height = 300
item_font = "DejaVu Sans Bold 14"
item_color = "#999"
selected_item_font = "DejaVu Sans Bold 14"
selected_item_color= "#fff"
item_height = 26
item_padding = 0
item_icon_space = 0
item_spacing = 1
scrollbar = false
}
# Show a countdown message using the label component
+ label {
top = 55%
left = 35%
width = 30%
align = "center"
id = "__timeout__"
text = "Booting in %d seconds"
color = "#f6f6f6"
}

View file

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/hdt.c32

View file

@ -0,0 +1 @@
/usr/lib/ISOLINUX/isolinux.bin

View file

@ -0,0 +1,3 @@
default vesamenu.c32
include stdmenu.cfg
include live.cfg

View file

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/ldlinux.c32

View file

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/libcom32.c32

View file

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/libgpl.c32

View file

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/libmenu.c32

View file

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/libutil.c32

View file

@ -0,0 +1,31 @@
prompt 0
MENU HIDDEN
MENU AUTOBOOT Booting TileOS live disk in # seconds
timeout 50
label live-@FLAVOUR@
menu label ^Start TileOS
menu default
linux @LINUX@
initrd @INITRD@
append @APPEND_LIVE@
MENU SEPARATOR
label live-failsafe
menu label Start TileOS (Safe Graphics)
set gfxpayload=keep
linux @LINUX@
initrd @INITRD@
append @APPEND_LIVE_FAILSAFE@
MENU SEPARATOR
label hd
menu label ^Boot from first hard disk
localboot 0x80
MENU SEPARATOR
LABEL power
MENU LABEL ^Power Off
COM32 poweroff.c32

View file

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/menu.c32

Binary file not shown.

View file

@ -0,0 +1,42 @@
menu hshift 13
menu width 49
menu margin 8
# Override the default radial gradient background with black
menu background #ff000000
# Title bar
menu color title 0 #ffffffff #00000000 *
# Border Area
menu color border * #00000000 #00000000 none
# Unselected menu item
menu color unsel 0 #999999 #00000000 *
# Unselected hotkey
menu color hotkey 0 #999999 #00000000 none
# Selection bar
menu color sel 0 #ffffff #00000000 none
# Selected hotkey
menu color hotsel 0 #ffffffff #00000000 none
# Press [Tab] message
menu color tabmsg 0 #f6f6f6 #00000000 none
# Timeout message
menu color timeout_msg 0 #f6f6f6 #00000000 none
# Timeout counter
menu color timeout * #ffffffff #00000000 none
# Command line
menu color cmdline 0 #ffffffff #00000000 none
# Command line marker
menu color cmdmark 0 #00000000 #00000000 none
# Helptest
menu color help 0 #ffffffff #00000000 none

View file

@ -0,0 +1 @@
/usr/lib/syslinux/modules/bios/vesamenu.c32

View file

@ -0,0 +1,7 @@
#!/bin/sh
echo "P: Begin executing remove-blacklisted-packages chroot hook..."
apt-get autoremove --purge -f -q -y \
systemsettings \
zutty

View file

@ -0,0 +1,10 @@
[terminal]
vt = 7
[default_session]
command = "tuigreet --remember --time --issue --asterisks --cmd start-sway"
user = "_greetd"
[initial_session]
command = "start-sway"
user = "tileos"