Add initial bootloader theme, allow build with other desktop's
This commit is contained in:
parent
9b92670c8e
commit
146b9dd811
35 changed files with 229 additions and 12 deletions
2
build.sh
2
build.sh
|
@ -66,7 +66,7 @@ build () {
|
||||||
|
|
||||||
# remove old configs and copy over new
|
# remove old configs and copy over new
|
||||||
rm -rf config auto
|
rm -rf config auto
|
||||||
cp -r "$BASE_DIR"/etc/* .
|
cp -r "$BASE_DIR"/etc/$DESKTOP/* .
|
||||||
# Make sure conffile specified as arg has correct name
|
# Make sure conffile specified as arg has correct name
|
||||||
cp -f "$BASE_DIR"/"$CONFIG_FILE" terraform.conf
|
cp -f "$BASE_DIR"/"$CONFIG_FILE" terraform.conf
|
||||||
|
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
[terminal]
|
|
||||||
vt = 7
|
|
||||||
|
|
||||||
[default_session]
|
|
||||||
command = "cage -s -d -- regreet"
|
|
||||||
user = "_greetd"
|
|
||||||
|
|
||||||
[initial_session]
|
|
||||||
command = "sway"
|
|
||||||
user = "tileos"
|
|
|
@ -12,7 +12,7 @@ lb config noauto \
|
||||||
--archive-areas "main contrib non-free non-free-firmware" \
|
--archive-areas "main contrib non-free non-free-firmware" \
|
||||||
--parent-archive-areas "main contrib non-free non-free-firmware" \
|
--parent-archive-areas "main contrib non-free non-free-firmware" \
|
||||||
--linux-packages linux-image \
|
--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" \
|
--mirror-bootstrap "$MIRROR_URL" \
|
||||||
--parent-mirror-bootstrap "$MIRROR_URL" \
|
--parent-mirror-bootstrap "$MIRROR_URL" \
|
||||||
--mirror-chroot-security "http://deb.debian.org/debian-security/" \
|
--mirror-chroot-security "http://deb.debian.org/debian-security/" \
|
BIN
etc/sway/config/bootloaders/grub-pc/dejavu-bold-14.pf2
Normal file
BIN
etc/sway/config/bootloaders/grub-pc/dejavu-bold-14.pf2
Normal file
Binary file not shown.
BIN
etc/sway/config/bootloaders/grub-pc/dejavu-bold-16.pf2
Normal file
BIN
etc/sway/config/bootloaders/grub-pc/dejavu-bold-16.pf2
Normal file
Binary file not shown.
61
etc/sway/config/bootloaders/grub-pc/grub.cfg
Normal file
61
etc/sway/config/bootloaders/grub-pc/grub.cfg
Normal 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
|
||||||
|
}
|
3
etc/sway/config/bootloaders/grub-pc/memtest.cfg
Normal file
3
etc/sway/config/bootloaders/grub-pc/memtest.cfg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
menuentry "Memory Diagnostic Tool (@MEMTEST_VERSION@)" --hotkey=m {
|
||||||
|
linux16 @MEMTEST_BIN@
|
||||||
|
}
|
BIN
etc/sway/config/bootloaders/grub-pc/tileos-theme/background.png
Normal file
BIN
etc/sway/config/bootloaders/grub-pc/tileos-theme/background.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 5.8 KiB |
BIN
etc/sway/config/bootloaders/grub-pc/tileos-theme/logo.png
Normal file
BIN
etc/sway/config/bootloaders/grub-pc/tileos-theme/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
61
etc/sway/config/bootloaders/grub-pc/tileos-theme/theme.txt
Normal file
61
etc/sway/config/bootloaders/grub-pc/tileos-theme/theme.txt
Normal 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"
|
||||||
|
}
|
1
etc/sway/config/bootloaders/isolinux/hdt.c32
Symbolic link
1
etc/sway/config/bootloaders/isolinux/hdt.c32
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/syslinux/modules/bios/hdt.c32
|
1
etc/sway/config/bootloaders/isolinux/isolinux.bin
Symbolic link
1
etc/sway/config/bootloaders/isolinux/isolinux.bin
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/ISOLINUX/isolinux.bin
|
3
etc/sway/config/bootloaders/isolinux/isolinux.cfg
Normal file
3
etc/sway/config/bootloaders/isolinux/isolinux.cfg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
default vesamenu.c32
|
||||||
|
include stdmenu.cfg
|
||||||
|
include live.cfg
|
1
etc/sway/config/bootloaders/isolinux/ldlinux.c32
Symbolic link
1
etc/sway/config/bootloaders/isolinux/ldlinux.c32
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/syslinux/modules/bios/ldlinux.c32
|
1
etc/sway/config/bootloaders/isolinux/libcom32.c32
Symbolic link
1
etc/sway/config/bootloaders/isolinux/libcom32.c32
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/syslinux/modules/bios/libcom32.c32
|
1
etc/sway/config/bootloaders/isolinux/libgpl.c32
Symbolic link
1
etc/sway/config/bootloaders/isolinux/libgpl.c32
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/syslinux/modules/bios/libgpl.c32
|
1
etc/sway/config/bootloaders/isolinux/libmenu.c32
Symbolic link
1
etc/sway/config/bootloaders/isolinux/libmenu.c32
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/syslinux/modules/bios/libmenu.c32
|
1
etc/sway/config/bootloaders/isolinux/libutil.c32
Symbolic link
1
etc/sway/config/bootloaders/isolinux/libutil.c32
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/syslinux/modules/bios/libutil.c32
|
31
etc/sway/config/bootloaders/isolinux/live.cfg.in
Normal file
31
etc/sway/config/bootloaders/isolinux/live.cfg.in
Normal 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
|
1
etc/sway/config/bootloaders/isolinux/menu.c32
Symbolic link
1
etc/sway/config/bootloaders/isolinux/menu.c32
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/syslinux/modules/bios/menu.c32
|
BIN
etc/sway/config/bootloaders/isolinux/poweroff.c32
Normal file
BIN
etc/sway/config/bootloaders/isolinux/poweroff.c32
Normal file
Binary file not shown.
42
etc/sway/config/bootloaders/isolinux/stdmenu.cfg
Normal file
42
etc/sway/config/bootloaders/isolinux/stdmenu.cfg
Normal 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
|
1
etc/sway/config/bootloaders/isolinux/vesamenu.c32
Symbolic link
1
etc/sway/config/bootloaders/isolinux/vesamenu.c32
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/syslinux/modules/bios/vesamenu.c32
|
7
etc/sway/config/hooks/live/000-remove-blacklisted-packages.chroot
Executable file
7
etc/sway/config/hooks/live/000-remove-blacklisted-packages.chroot
Executable 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
|
10
etc/sway/config/includes.chroot/etc/greetd/config.toml
Normal file
10
etc/sway/config/includes.chroot/etc/greetd/config.toml
Normal 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"
|
Loading…
Add table
Reference in a new issue