Initial commit: apkovl deployment source, synced from shell-project main

This directory is what gets packaged into localhost.apkovl.tar.gz and
baked into adaptiveos-vN.iso. It had drifted out of sync with the real
project (root/shell-project/ had gone missing entirely at some point
after being written earlier this session -- cause unconfirmed, Desktop
is a plausible sync-related suspect but not verified) and separately
carried a stale, pre-fix copy of fx.sh.

Current contents:
  etc/profile.d/adaptive-loop.sh   -- disk-persists p AND p.trace
                                       (fx()'s fix-provenance record)
                                       across reboot, two separate 1MB
                                       blocks on the attached state disk
  etc/profile.d/adaptive-setup.sh  -- unchanged, network/git/fzf bring-up
  root/shell-project/              -- synced from space.seodr.ovh/
                                       Daveswo/self-healing-autopoietic-
                                       shell @ 3c4947e (main), plus three
                                       deployment-only files not in that
                                       repo: contrib/fx/builtin-fixes.txt,
                                       contrib/fx/sources.d/15-builtin-
                                       fixes.sh, contrib/heal/heal.sh

Verified byte-identical to what's actually embedded in the currently
shipping adaptiveos-v6.iso before this commit (full recursive diff),
and every .sh file passes `sh -n`.

.gitattributes (text=auto eol=lf) added to prevent the CRLF corruption
that hit the canonical repo earlier this session from recurring here.
This commit is contained in:
2026-08-22 02:55:40 -04:00
commit 77856f0a09
16 changed files with 705 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/bin/sh
# One-time (per boot) install of git and fzf -- needs network.
# thefuck is deliberately NOT auto-installed: it needs python3/py3-pip
# plus a C build toolchain for musl (no prebuilt wheels for some of its
# deps), which this minimal image does not carry, and which would be
# painfully slow to compile under emulation. Install it by hand if you
# want it: apk add python3 py3-pip gcc musl-dev python3-dev &&
# pip3 install --break-system-packages thefuck
if [ ! -f /var/adaptive-setup-done ]; then
echo 'AdaptiveOS: bringing up network and installing git + fzf...'
ip link set eth0 up 2>/dev/null
ip addr add 10.0.2.15/24 dev eth0 2>/dev/null
ip route add default via 10.0.2.2 2>/dev/null
echo 'nameserver 10.0.2.3' > /etc/resolv.conf
if timeout 5 ping -c1 -W3 1.1.1.1 >/dev/null 2>&1; then
grep -q 'dl-cdn.alpinelinux.org/alpine/v3.19/main' /etc/apk/repositories || echo 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main' >> /etc/apk/repositories
grep -q 'dl-cdn.alpinelinux.org/alpine/v3.19/community' /etc/apk/repositories || echo 'http://dl-cdn.alpinelinux.org/alpine/v3.19/community' >> /etc/apk/repositories
: > /tmp/adaptive-setup.log
timeout 60 apk update -q >>/tmp/adaptive-setup.log 2>&1
timeout 90 apk add -q git fzf >>/tmp/adaptive-setup.log 2>&1
touch /var/adaptive-setup-done
echo 'AdaptiveOS: git + fzf installed. (log: /tmp/adaptive-setup.log)'
else
echo 'AdaptiveOS: no network reachable -- skipping git/fzf install'
touch /var/adaptive-setup-done
fi
fi