Initial River build

This commit is contained in:
Aleksey Samoilov 2023-05-17 16:08:42 +04:00
parent 146b9dd811
commit 939f393a80
33 changed files with 321 additions and 0 deletions

51
etc/river/auto/config Executable file
View file

@ -0,0 +1,51 @@
#!/bin/sh
set -e
. ./terraform.conf
lb config noauto \
--architectures "$ARCH" \
--mode debian \
--distribution "$BASECODENAME" \
--parent-distribution "$BASECODENAME" \
--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 username=tileos quiet splash" \
--mirror-bootstrap "$MIRROR_URL" \
--parent-mirror-bootstrap "$MIRROR_URL" \
--mirror-chroot-security "http://deb.debian.org/debian-security/" \
--parent-mirror-chroot-security "http://deb.debian.org/debian-security/" \
--apt-source-archives false \
--parent-mirror-binary "$MIRROR_URL" \
--keyring-packages debian-keyring \
--apt-options "--yes --option Acquire::Retries=5 --option Acquire::http::Timeout=100" \
--cache-packages false \
--checksums md5 \
--uefi-secure-boot enable \
--binary-images iso-hybrid \
--iso-application "$NAME" \
--iso-volume "$NAME" \
--firmware-chroot true \
--zsync false \
--security true \
--updates true \
--debootstrap-options="--extractor=ar" \
"${@}"
# replace channel and suite
sed -i "s/@CHANNEL/$CHANNEL/" config/archives/*.list*
sed -i "s/@DEBIAN_VERSION/$DEBIAN_VERSION/" config/archives/*.list*
# replace desktop
sed -i "s/@DESKTOP/$DESKTOP/" config/package-lists.calamares/*.chroot_install
sed -i "s/@DESKTOP/$DESKTOP/" config/package-lists.calamares/*.chroot_live
DATE=$(date +%Y%m%d)
sed -i "s/@CHANNEL/$CHANNEL/" config/includes.binary/.disk/info
sed -i "s/@CODENAME/$CODENAME/" config/includes.binary/.disk/info
sed -i "s/@ARCH/$ARCH/" config/includes.binary/.disk/info
sed -i "s/@DISTRO_NAME/$NAME/" config/includes.binary/.disk/info
sed -i "s/@VERSION/$VERSION/" config/includes.binary/.disk/info
sed -i "s/@DATE/$DATE/" config/includes.binary/.disk/info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END PGP PUBLIC KEY BLOCK-----

View file

@ -0,0 +1 @@
deb http://download.opensuse.org/repositories/home:/Sunderland93:/tileos-@CHANNEL/@DEBIAN_VERSION/ /

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,7 @@
#!/bin/sh
# Description: Cleanup apt cache files that add ~100MB to the .iso and aren't needed
rm -f /var/lib/apt/lists/*_Packages
rm -f /var/lib/apt/lists/*_Sources
rm -f /var/lib/apt/lists/*_Translation-*

View file

@ -0,0 +1,5 @@
#!/bin/sh
echo "P: Begin executing set-disk-info binary hook in ${PWD}"
cp -rf ../config/includes.binary/.disk .

View file

@ -0,0 +1 @@
full_cd/single

View file

@ -0,0 +1 @@
@DISTRO_NAME @VERSION "@CODENAME" - @CHANNEL @ARCH (@DATE)

View file

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

View file

@ -0,0 +1,2 @@
[keyfile]
unmanaged-devices=none

View file

@ -0,0 +1,4 @@
tileos-base
tileos-desktop-common
tileos-drivers
tileos-desktop-@DESKTOP

View file

@ -0,0 +1 @@
tileos-@DESKTOP-live