Compare commits

...

3 commits

Author SHA1 Message Date
1f38fc20f7
workflow
All checks were successful
/ job (push) Successful in 1m21s
2025-04-27 19:31:02 +02:00
d3373dd6fa
build.py 2025-04-27 19:23:33 +02:00
d1d77a3e48
ubusquash 2024-07-30 12:22:02 +02:00
4 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,17 @@
on: [push]
jobs:
job:
container:
image: ${{vars.DOCKER}}debian:bookworm
steps:
- name: spcd
env:
SPCD: ${{vars.SPCD}}
SPCD_SSH_HOSTS: ${{vars.SPCD_SSH_HOSTS}}
SPCD_SSH_KEY: ${{secrets.SPCD_SSH_KEY}}
SPCD_TXT_LOCALE: ${{vars.SPCD_TXT_LOCALE}}
run: ${{vars.SPCD}}
- run: spcd-build-project
- run: spcd-browse-workspace
- run: spcd-synchronize

11
build.py Executable file
View file

@ -0,0 +1,11 @@
#! /usr/bin/env python3
"""Dummy build."""
from pathlib import Path
from rwx.fs import make_directory, write
if __name__ == "__main__":
out = Path(__file__).parent / "out" / "web"
make_directory(out)
write(out / "index.html", "lsgm.rwx.work")

View file

@ -9,5 +9,8 @@ menu_split
menuentry 'bash / latest / tui' --id 'lt' { debsquash '/w/boot/bash/latest/tui' } menuentry 'bash / latest / tui' --id 'lt' { debsquash '/w/boot/bash/latest/tui' }
menuentry 'bash / latest / gui' --id 'lg' { debsquash '/w/boot/bash/latest/gui' } menuentry 'bash / latest / gui' --id 'lg' { debsquash '/w/boot/bash/latest/gui' }
menu_split menu_split
menuentry 'ubuntu / stable' { ubusquash '/w/boot/ubuntu/stable' }
menuentry 'ubuntu / latest' { ubusquash '/w/boot/ubuntu/latest' }
menu_split
menuentry 'alma / stable' { almsquash '/w/boot/alma/stable' } menuentry 'alma / stable' { almsquash '/w/boot/alma/stable' }
menuentry 'alma / latest' { almsquash '/w/boot/alma/latest' } menuentry 'alma / latest' { almsquash '/w/boot/alma/latest' }

View file

@ -84,3 +84,45 @@ live-media-uuid="${data_uuid}" \
echo "${initrd_path}" echo "${initrd_path}"
initrd "${initrd_path}" initrd "${initrd_path}"
} }
function ubusquash {
lmp="${1}"
sfs="filesystem.squashfs"
#
if [ "${check_squashfs}" == 'enforce' ] ; then
chk="(${data})${lmp}/${sfs}"
echo 'verify_detached'
echo "${chk}"
if ! verify_detached "${chk}" "${chk}.sig" ; then
grub_pause
return 1
fi
fi
if [ -f "(${data})${lmp}/vmlinuz" ] ; then
linux_path="(${data})${lmp}/vmlinuz"
initrd_path="(${data})${lmp}/initrd.img"
else
linux_path="(squash)/vmlinuz"
initrd_path="(squash)/initrd.img"
loopback "squash" "${lmp}/${sfs}"
fi
#
echo
echo 'linux'
echo "${linux_path}"
toram='toram'
if [ "${live_from}" == 'ram' ] ; then
toram="${toram}=${sfs}"
fi
linux \
"${linux_path}" \
boot="live" \
elevator="deadline" \
live-media-path="${lmp}" \
live-media-uuid="${data_uuid}" \
"${toram}"
#
echo
echo 'initrd'
echo "${initrd_path}"
initrd "${initrd_path}"
}