Repository navigation
Description
Summary
Rework the JNode installer so it can be invoked interactively from an already-running shell (full boot) instead of (or in addition to) being launched as a boot-time Main-Class. This removes three independent blockers that currently make the installer unusable and aligns the installer with the parts that already work (grub hda0 + cp).
Current design and why it fails
The installer (distr/src/install/) is a boot-time plugin: org.jnode.install.Main → CommandLineInstaller → AbstractInstaller runs GrubInstallerAction + CopyFilesAction, all driven by reading System.in.
Blocker 1 — no console input at boot time. System.in is only initialized by a CommandShell (shell/src/shell/org/jnode/shell/CommandShell.java:226). A boot-time Main-Class never starts a shell, so System.in is empty and the prompt step (getDevice(null) → BufferedReader.readLine) cannot get user input.
Blocker 2 — boot-time reflection invoke crashes the JIT (see #614): mainMethod.invoke(...) at core/src/core/org/jnode/boot/Main.java:95 trips X86RegisterPool.reset → Error: Register(s) in use. So even before the input problem, the installer never starts.
Blocker 3 — GrubInstallerAction.execute() NPEs on every run. The jgrub field (distr/src/install/org/jnode/install/action/GrubInstallerAction.java:40) is never assigned; getInput() creates a local JGrub jgrub (line 50) that shadows the field, so execute() at line 62 calls jgrub.install() on null.
Also: all/conf/install-plugin-list.xml (installer boot plugin set) references a renamed plugin (org.apache.jakarta.commons.net, no longer exists — it is org.apache.commons.net) and is not wired into the build (initjar glob is *plugin-list.xml, the file is *_disabled.xml), and the "JNode Install" GRUB entry is commented out.
Proposal
- Add a shell command (e.g.
install) in thedistr/project that drives the installer actions from inside an existing shell:- Runs
GrubInstallerAction/CopyFilesAction(or reuses the sharedAbstractInstallerlogic) withSystem.inalready bound, and - avoids the boot-time reflection-compile path entirely (the command is invoked by the shell’s normal command dispatch, not
Main.javareflection of an initjar Main-Class).
- Runs
- Or, minimally: turn the installer into a documented shell recipe built on working primitives —
grub <device>(JGrubInstallCommand) to install GRUB, thencp /devices/sg0/jnode32.gz /devices/sg0/full.jgz <target>for the file copy. - Fix the
jgrubfield-shadowing NPE (assignthis.jgrub = jgrub). - Clean up the boot plugin list: refresh plugin IDs (drop
org.apache.jakarta.commons.net), prune transitive deps, and wire it into the build so the install CD entry works again.
Scope
distr/src/install/org/jnode/install/—CommandLineInstaller,action/GrubInstallerAction.java(NPE),action/CopyFilesAction.java- shell command plugin for
install(new) all/conf/install-plugin-list*.xml,all/conf/x86/menu-cdrom.lst(build wiring)- Depends on JFAT/IDE multi-sector writes to IDE disk deadlock after first sector(s) (cp, grub stage2 copy hang) #613 (multi-sector IDE write deadlock) for the CopyFilesAction step, and VM Level1A compiler: 'Register(s) in use' Error at X86RegisterPool.reset during boot-time Main invocation #614 (JIT crash) for any remaining boot-time launch path.
Reference
- distr/src/install/org/jnode/install/action/GrubInstallerAction.java:40-62 (shadowing NPE)
- distr/src/install/org/jnode/install/action/CopyFilesAction.java (file copy step)
- distr/src/install/org/jnode/install/AbstractInstaller.java (action loop)
- shell/src/shell/org/jnode/shell/CommandShell.java:226 (only System.in initializer)
- fs/src/commands/org/jnode/fs/jfat/command/JGrubInstallCommand.java (alias
grub, the working GRUB install path) - JFAT/IDE multi-sector writes to IDE disk deadlock after first sector(s) (cp, grub stage2 copy hang) #613, VM Level1A compiler: 'Register(s) in use' Error at X86RegisterPool.reset during boot-time Main invocation #614
Triage Addendum (auto, 2026-11-21)
- Area / Kind: area/build + area/shell; kind/feature
- Blast radius: L5 system (install CD boot menu/ISO packaging plus installer disk writes; QEMU boot proof required)
- Expected scope: Re-enable the disabled "JNode Install" entries in
all/conf/x86/menu-cdrom.lstandmenu-cdrom-64.lst(andmenu.lst); confirmall/conf/install-plugin-list.xml->install.jgzinitjar wiring inall/build.xml; verify the shell path already present indistr/(InstallCommandwithinstallalias,this.jgrub = jgrub,org.apache.commons.net). No ASM, no public API, no regression of the boot-time Main path. ~20-60 lines, mostly config. - Test path:
sh build.sh cd-x86-lite(pluscd-x86_64-lite), boot the ISO in QEMU with a scratch target disk, runinstallfrom the shell, confirm GRUB install and file copy. - Merge signal: human-review (feature, L5 boot path, disk-write installer)
- Gaps: Non-blocking: acceptance matrix (32/64-bit, IDE/SCSI target) and whether the install CD entry should boot
org.jnode.install.Mainor a shell prompt are unspecified; the descriptor currently keeps Main-Class. - Full report:
## Triagecomment below.
✅ Ticket Runner Status
| Field | Value |
|---|---|
| Phase | DONE |
| Turn | 0/7 |
| Retries | 0/3 |
| PR | #984 |
| Review in progress | no |
| Started | 2026-11-21T22:32:31.758Z |
Activity
fix(install): declare jfat command dependency and enable install plug…
feat(install): add interactive shell command and fix GrubInstallerAct…
LSantha commentedon Nov 21, 2026
/run
LSantha commentedon Nov 21, 2026
/oc triage issue #615
Triage run ONLY. Load the jnode-triage-issue skill and obey it. Output is exactly one ## Triage comment plus kind/area label edits. FORBIDDEN in this run: git checkout -b, git push, gh pr create, any branch, any PR.
LSantha commentedon Nov 21, 2026
Triage
menu-cdrom*.lst,install-plugin-list.xml, build wiring) + area/shell (InstallCommandalias); area/builder removed - nobuilder/srcinvolvementinstallcommand,GrubInstallerActionNPE, plugin-list refresh, install CD menu); blockers JFAT/IDE multi-sector writes to IDE disk deadlock after first sector(s) (cp, grub stage2 copy hang) #613/VM Level1A compiler: 'Register(s) in use' Error at X86RegisterPool.reset during boot-time Main invocation #614 are closedall/conf/x86/menu-cdrom.lstandmenu-cdrom-64.lst(andmenu.lst), confirminstall-plugin-list.xml->install.jgzinitjar wiring inall/build.xml; shell command/alias andthis.jgrubNPE fix already present indistr/; no ASM, public API, or boot-time Main regression; ~20-60 lines, mostly configsh build.sh cd-x86-lite(pluscd-x86_64-lite), QEMU boot with a scratch target disk, runinstall, confirm GRUB install and file copybuilder/srcinvolvement)github run
LSantha commentedon Nov 21, 2026
/oc Please proceed with this task.
LSantha commentedon Nov 21, 2026
Created PR #984
github run