Compare commits
3 commits
579067d5d6
...
1f38fc20f7
Author | SHA1 | Date | |
---|---|---|---|
1f38fc20f7 | |||
d3373dd6fa | |||
d1d77a3e48 |
4 changed files with 73 additions and 0 deletions
17
.forgejo/workflows/main.yaml
Normal file
17
.forgejo/workflows/main.yaml
Normal 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
11
build.py
Executable 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")
|
|
@ -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' }
|
||||||
|
|
|
@ -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}"
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue