images: drop 9front support
Just too much of a hassle to support this for the number of users we have. Sorry.
This commit is contained in:
parent
bb3c35344b
commit
892b2887fa
|
@ -1 +0,0 @@
|
|||
amd64
|
|
@ -1,18 +0,0 @@
|
|||
image: 9front
|
||||
sources:
|
||||
- https://git.sr.ht/~sircmpwn/builds.sr.ht
|
||||
environment:
|
||||
arch: x86_64
|
||||
release: "27a63ae22975171efbee5549d100f416ccb4066a"
|
||||
slaves:
|
||||
# - deploy@cirno1.sr.ht
|
||||
- deploy@cirno2.sr.ht
|
||||
secrets:
|
||||
- fa00a8d3-7b63-42d5-8060-3bb31c3e3018
|
||||
triggers:
|
||||
- action: email
|
||||
condition: failure
|
||||
to: ~sircmpwn/sr.ht-image-failures@lists.sr.ht
|
||||
tasks:
|
||||
- genimg: |
|
||||
./builds.sr.ht/images/9front/genimg
|
|
@ -1,5 +0,0 @@
|
|||
logincmd: drawterm
|
||||
git_variant: git9
|
||||
homedir: /usr/glenda
|
||||
preamble: |
|
||||
#!/bin/rc -xe
|
|
@ -1,22 +0,0 @@
|
|||
#!/bin/sh
|
||||
poweroff_cmd="fshalt"
|
||||
default_arch=amd64
|
||||
guestport=17019
|
||||
|
||||
boot() {
|
||||
if [ "$arch" != "amd64" ]
|
||||
then
|
||||
echo "Unsupported architecture $arch" >&2
|
||||
exit 1
|
||||
fi
|
||||
driveopts="if=ide,index=0"
|
||||
qemu=qemu-system-x86_64
|
||||
_boot $(cpu_opts x86_64)
|
||||
}
|
||||
|
||||
guest_ssh() {
|
||||
# Parameters: -p $port user@localhost
|
||||
port=$2
|
||||
shift 3
|
||||
PASS=password drawterm -a none -u glenda -h "tcp!127.0.0.1!$port" -c "$*"
|
||||
}
|
|
@ -1,38 +0,0 @@
|
|||
#!/bin/rc
|
||||
rfork en
|
||||
latest=`{cat builds.sr.ht/images/9front/latest}
|
||||
hget http://git.9front.org/git/plan9front/plan9front/^$latest^/snap.tar.gz > 9front.tgz
|
||||
gunzip 9front.tgz
|
||||
tar xf 9front.tar
|
||||
mv 9front-* 9front
|
||||
cd 9front
|
||||
. ./sys/lib/rootstub
|
||||
. ./sys/lib/rootbind
|
||||
cd /sys/src/
|
||||
mk install
|
||||
cd /sys/src/9/pc64
|
||||
mk install
|
||||
cd /sys/lib/dist
|
||||
bind $home/9front/$cputype /$cputype
|
||||
bind $home/9front/rc /rc
|
||||
bind -b /rc/bin /bin
|
||||
bind -b /$cputype/bin /bin
|
||||
bind $home/9front /n/src9/
|
||||
#inherit configuration
|
||||
bind /lib/ndb/local /n/src9/lib/ndb/local
|
||||
bind /usr/glenda/lib/profile usr/glenda/lib/profile
|
||||
sed 's,echo ''bootfile.*,cat /n/9fat/plan9.ini >/env/plan9.ini,g' mkfile >mkfile.2
|
||||
mv mkfile.2 mkfile
|
||||
bind -a '#S' /dev
|
||||
9fs 9fat
|
||||
mk new.amd64.qcow2
|
||||
nvram=/dev/*/nvram
|
||||
@{rfork n
|
||||
disk/qcowfs new.amd64.qcow2
|
||||
disk/partfs /mnt/qcow/data
|
||||
disk/fdisk -p /dev/sdXX/data >> /dev/sdXX/ctl
|
||||
disk/prep -p /dev/sdXX/plan9 >> /dev/sdXX/ctl
|
||||
cp $nvram /dev/sdXX/nvram
|
||||
}
|
||||
unmount /n/9fat
|
||||
rm /srv/dos
|
|
@ -1 +0,0 @@
|
|||
27a63ae22975171efbee5549d100f416ccb4066a
|
|
@ -1,31 +0,0 @@
|
|||
This starts with a fairly bog-standard 9front installation. glenda's password is
|
||||
set to "password".
|
||||
|
||||
Our /lib/ndb/local setup looks like this:
|
||||
|
||||
auth=build authdom=9front
|
||||
ipnet=9front ip-10.0.0.0 ipmask=255.255.255.0
|
||||
ipgw=10.0.2.2
|
||||
dns=8.8.8.8
|
||||
auth=build
|
||||
dnsdom=9front
|
||||
cpu=build
|
||||
sys=build ether=525400123456 ip=10.0.2.15 dom=build.9front
|
||||
|
||||
These settings match the expectations from qemu's user mode networking.
|
||||
|
||||
The installation is configured as a CPU server. /usr/glenda/lib/profile is
|
||||
updated to start webfs for CPU logins.
|
||||
|
||||
A heavily patched drawterm implementation is used to remove the MASSIVE GAPING
|
||||
HOLES in drawterm's security model:
|
||||
|
||||
https://hg.sr.ht/~sircmpwn/drawterm
|
||||
|
||||
Future work:
|
||||
- Import builds.sr.ht secrets into factotum?
|
||||
- Package support, whatever that might mean for 9front
|
||||
- Script to generate updated qcow2's with
|
||||
- Proxy SSH logins to drawterm for logging into failed builds
|
||||
- Patch 9front's Mercurial to support cloning via hg.sr.ht's updated protocols
|
||||
- Add golang? /shrug
|
Loading…
Reference in New Issue