fix(arje): saneo ente-→arje- en scripts y seeds de boot
El rename ente→arje dejó referencias stale al binario PID 1 y a los shims. Los nombres reales (verificados con cargo metadata) son todos arje-*: arje-zero, los 14 arje-*-compat, arje-echo, arje-policy-provider, arje-bus, arje-brain. - build-arje-initrd.sh, install-arje-as-init.sh, uninstall-arje.sh, run-arje-qemu.sh: `-p ente-*` → `-p arje-*`, paths /sbin/arje-zero y /usr/sbin/arje-*, RUST_LOG arje_zero=info. - seeds/arje-prod y arje-host: los exec `/usr/sbin/ente-*-compat` apuntaban a binarios que no existirían tras instalar — corregidos a `/usr/sbin/arje-*`. (validate.sh no chequea exec, por eso «validaban» igual; al boot real habrían fallado.) Intactos a propósito: `/ente/` (directorio canónico de la Semilla) y `ente.slice/*` (jerarquía cgroup). Las 3 seeds validan. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
# 2. Copia binarios a /usr/sbin/ (init/shims) y /usr/bin/ (CLIs admin)
|
||||
# del rootfs vivo.
|
||||
# 3. Copia la seed a /ente/seed.card.json (default: arje-host.card.json).
|
||||
# 4. Crea menuentry "arje" en /etc/grub.d/40_custom usando init=/sbin/ente-zero
|
||||
# 4. Crea menuentry "arje" en /etc/grub.d/40_custom usando init=/sbin/arje-zero
|
||||
# (conserva initramfs nativo → firmware, módulos kernel, root FS,
|
||||
# siguen funcionando exactamente igual).
|
||||
# 5. Ejecuta update-grub o grub-mkconfig según distro.
|
||||
@@ -66,13 +66,13 @@ BIN_DIR="$REPO_DIR/target/$TARGET/release"
|
||||
EX_DIR="$BIN_DIR/examples"
|
||||
|
||||
echo "[install-arje] paso 2/5: instalar binarios en /usr/sbin/ y /usr/bin/"
|
||||
install -m 0755 "$BIN_DIR/ente-zero" /usr/sbin/ente-zero
|
||||
for b in ente-echo ente-policy-provider \
|
||||
ente-logind-compat ente-hostnamed-compat ente-timedated-compat \
|
||||
ente-localed-compat ente-journald-compat ente-resolved-compat \
|
||||
ente-polkit-compat ente-machined-compat ente-systemd1-compat \
|
||||
ente-notify-compat ente-timer-compat ente-tmpfiles-compat \
|
||||
ente-binfmt-compat; do
|
||||
install -m 0755 "$BIN_DIR/arje-zero" /usr/sbin/arje-zero
|
||||
for b in arje-echo arje-policy-provider \
|
||||
arje-logind-compat arje-hostnamed-compat arje-timedated-compat \
|
||||
arje-localed-compat arje-journald-compat arje-resolved-compat \
|
||||
arje-polkit-compat arje-machined-compat arje-systemd1-compat \
|
||||
arje-notify-compat arje-timer-compat arje-tmpfiles-compat \
|
||||
arje-binfmt-compat; do
|
||||
install -m 0755 "$BIN_DIR/$b" "/usr/sbin/$b"
|
||||
done
|
||||
for e in brahman-status busctl brainctl; do
|
||||
@@ -129,11 +129,11 @@ fi
|
||||
|
||||
cat >> "$CUSTOM" <<EOF
|
||||
# BEGIN ARJE-MENUENTRY (generated by install-arje-as-init.sh)
|
||||
menuentry "arje (init=/sbin/ente-zero) — kernel $KVER" {
|
||||
menuentry "arje (init=/sbin/arje-zero) — kernel $KVER" {
|
||||
insmod gzio
|
||||
insmod part_msdos
|
||||
insmod ext2
|
||||
linux $VMLINUZ $ROOT_OPT ro init=/sbin/ente-zero console=tty1 console=ttyS0,115200 panic=10
|
||||
linux $VMLINUZ $ROOT_OPT ro init=/sbin/arje-zero console=tty1 console=ttyS0,115200 panic=10
|
||||
initrd $INITRD
|
||||
}
|
||||
# END ARJE-MENUENTRY
|
||||
@@ -159,13 +159,13 @@ cat <<EOF
|
||||
systemd sigue siendo tu init default — esta máquina arranca systemd
|
||||
salvo que elijas explícitamente "arje" en GRUB.
|
||||
|
||||
- binarios: /usr/sbin/ente-* y /usr/bin/{brahman-status,busctl,brainctl}
|
||||
- binarios: /usr/sbin/arje-* y /usr/bin/{brahman-status,busctl,brainctl}
|
||||
- seed activa: /ente/seed.card.json (origen: $SEED)
|
||||
- menuentry: /etc/grub.d/40_custom (regenerá grub.cfg si lo editás)
|
||||
|
||||
Para arrancar arje al próximo boot UNA SOLA VEZ (sin cambiar default):
|
||||
|
||||
sudo grub-reboot "arje (init=/sbin/ente-zero) — kernel $KVER"
|
||||
sudo grub-reboot "arje (init=/sbin/arje-zero) — kernel $KVER"
|
||||
sudo reboot
|
||||
|
||||
Para revertir (quita binarios + menuentry):
|
||||
|
||||
Reference in New Issue
Block a user